Lets talk about loading files...
#10

pawn Код:
//top of script
new bool:LoadingFile[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
    if(!LoadingFile[playerid])
    {
        Files(playerid); //Loading the Roleplay Datafiles from Server/Logs/
        LoadingFile[playerid] = true;
    }
    SetPlayerPos(playerid,1722.897705, -1881.476196, 13.564631);
    SetPlayerFacingAngle(playerid,358.715026);
    return 1;
}
i made the bool because when player spawn the files will load every spawn
i need to log out give the answer because my parents are so angry so fucking bitch!

bye
Reply


Messages In This Thread
Lets talk about loading files... - by GAMER_PS2 - 12.12.2011, 11:31
Re: Lets talk about loading files... - by GAMER_PS2 - 12.12.2011, 11:34
Re: Lets talk about loading files... - by suhrab_mujeeb - 12.12.2011, 11:36
Re: Lets talk about loading files... - by GAMER_PS2 - 12.12.2011, 11:39
Re: Lets talk about loading files... - by GAMER_PS2 - 12.12.2011, 11:46
Re: Lets talk about loading files... - by suhrab_mujeeb - 12.12.2011, 11:48
Re: Lets talk about loading files... - by GAMER_PS2 - 12.12.2011, 12:02
Re: Lets talk about loading files... - by suhrab_mujeeb - 12.12.2011, 12:12
Re: Lets talk about loading files... - by Vince - 12.12.2011, 12:18
Re: Lets talk about loading files... - by GAMER_PS2 - 12.12.2011, 12:19

Forum Jump:


Users browsing this thread: 4 Guest(s)