Stop spawn if not logged - 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: Stop spawn if not logged (
/showthread.php?tid=133961)
Stop spawn if not logged -
Fedee! - 14.03.2010
I tryed this:
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsLogged[playerid] == 0)
{
SystemMsg(playerid, "You have to login first!");
return 0;
}
else return 1;
}
But
OnPlayerSpawn doesn't handle returns.. so.. how can I do.. ?
Thanks
Re: Stop spawn if not logged -
Torran - 14.03.2010
https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Re: Stop spawn if not logged -
Carlton - 14.03.2010
pawn Код:
public OnPlayerRequestSpawn(playerid) {
if(IsLogged[playerid] == 0)
{
SystemMsg(playerid, "You have to login first!");
return 0;
}
}
Re: Stop spawn if not logged -
Fedee! - 14.03.2010
Lol, thanks