Token
Godly Sinner
Administrator
Content Team
Hidden Devils
Super Network Ghost
Hello Sinners!
Today I bring you the source to one of the most infamous scripts around... Let's level the playing field a little.
The catch is, if you can compile it, you can use it. You will also have to call the '.sco' file inside your 'network_startup.sco'.
I know a few people are going to either hate on me for this and I also know there will be the minority that appreciate me doing this.
Hello Sinners!
Today I bring you the source to one of the most infamous scripts around... Let's level the playing field a little.
The catch is, if you can compile it, you can use it. You will also have to call the '.sco' file inside your 'network_startup.sco'.
I know a few people are going to either hate on me for this and I also know there will be the minority that appreciate me doing this.
Code:
/// Super Network Ghost Source ///
#include <natives.h>
#include <common.h>
#include <consts.h>
#include <types.h>
#include <strings.h>
bool settings = true;
Ped pPlayer;
uint change_player_model; // passed from main script
void main(void)
{
THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
while(true){
pPlayer = GetPlayerPed();
WAIT(0);
if(GET_NUMBER_OF_INSTANCES_OF_STREAMED_SCRIPT("network_main") == 1){
TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("network_main");
}
if(GET_NUMBER_OF_INSTANCES_OF_STREAMED_SCRIPT("freemode_cr") == 1){
TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("freemode_cr");
}
WAIT(100);
if(DOES_SCRIPT_EXIST("modmanager_startup")){
if(GET_NUMBER_OF_INSTANCES_OF_STREAMED_SCRIPT("modmanager_startup") == 0){
REQUEST_SCRIPT("modmanager_startup");
while(!HAS_SCRIPT_LOADED("modmanager_startup")) WAIT(0);
START_NEW_SCRIPT("modmanager_startup",1024);
MARK_SCRIPT_AS_NO_LONGER_NEEDED("modmanager_startup");
}
}
WAIT(100);
if(settings){
USE_PLAYER_COLOUR_INSTEAD_OF_TEAM_COLOUR(true);
SWITCH_ARROW_ABOVE_BLIPPED_PICKUPS(true);
DISPLAY_FRONTEND_MAP_BLIPS(true);
SET_SYNC_WEATHER_AND_GAME_TIME(true);
SET_TEXT_DRAW_BEFORE_FADE(1);
SET_SPRITES_DRAW_BEFORE_FADE(true);
DISPLAY_PLAYER_NAMES(true);
WAIT(10);
SET_PLAYER_CONTROL(GetPlayerIndex(),1);
FREEZE_CHAR_POSITION(GetPlayerPed(),0);
settings = false;
}
SET_CHAR_COORDINATES(GetPlayerPed(),2633.4407,415.1447,5.3555); //teleport for ghost mode
Alert_Two("~BLIP_76~ ~r~Welcome to the Safe Heaven - Ghost by Knife~p~",GET_PLAYER_NAME(GET_PLAYER_ID()));
WAIT(0);
}
if (PLAYER_HAS_CHAR(GET_PLAYER_ID()) )
GET_PLAYER_CHAR(GET_PLAYER_ID(), &pPlayer);
REQUEST_MODEL(GET_PLAYERSETTINGS_MODEL_CHOICE());
while(!HAS_MODEL_LOADED(GET_PLAYERSETTINGS_MODEL_CHOICE())) WAIT(0);
CHANGE_PLAYER_MODEL(GET_PLAYER_ID(), GET_PLAYERSETTINGS_MODEL_CHOICE());
MARK_MODEL_AS_NO_LONGER_NEEDED(GET_PLAYERSETTINGS_MODEL_CHOICE());
WAIT(300);
SET_CHAR_COORDINATES(GetPlayerPed(),2633.4407,415.1447,5.3555);
Alert_Two("~BLIP_76~ ~r~Welcome to the Safe Haven~p~",GET_PLAYER_NAME(GET_PLAYER_ID()));
TERMINATE_THIS_SCRIPT();
}
- For working on this...
- Wenus
- Inquisition
- Aizle
Last edited: