Spawn disable - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spawn disable (
/showthread.php?tid=124409)
Spawn disable -
TouR - 30.01.2010
Can i make cannot spawn if he is not loged in? i use logged[MAX_PLAYERS];
Re: Spawn disable -
ray187 - 30.01.2010
Код:
public OnPlayerRequestSpawn(playerid)
{
if(!logged[playerid])
return 0;
return 1;
}
Re: Spawn disable -
TouR - 30.01.2010
no i cannot spawn even i am loged in
Re: Spawn disable -
ray187 - 30.01.2010
Then you don`t assigned logged[playerid] properly when you`ve logged in.
Re: Spawn disable -
TouR - 30.01.2010
ok i made it this is the correct form
public OnPlayerRequestSpawn(playerid)
{
if(!logged[playerid])
{
SendClientMessage(playerid, COLOR_RED, "[ERROR]: You need to login first");
return 0;
}
return 1;
}
Re: Spawn disable -
ray187 - 30.01.2010
That`s formwise as correct as the code in my first post.
Re: Spawn disable -
TouR - 30.01.2010
but first didn't work:\ anyway thank you guys for helping