SA-MP Forums Archive
Stoping the player from spawning not workin - 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: Stoping the player from spawning not workin (/showthread.php?tid=161481)



Stoping the player from spawning not workin - -Rebel Son- - 20.07.2010

Ok i got a splash screen, im trying to stop the player from spawning till it's over, but so far, they hit spawn it says CANT SPAWN YET! and lets them spawn anyways

Код:
public OnPlayerSpawn(playerid)
{
if (IsSpawned[playerid] == 0)
{
IsSpawned[playerid] = 1;
}else{
SendClientMessage(playerid,COLOR_RED,"cantspawn");
}
return true;}



Re: Stoping the player from spawning not workin - [HiC]TheKiller - 20.07.2010

Here is a way you stop people from spawning

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(conditionhere == true)
    {
        //The player won't spawn
        return 0;
    }
    //Player will spawn
    return 1;
}



Re: Stoping the player from spawning not workin - Betamaster - 20.07.2010

Do not make multiple threads for the same questions.

https://sampforum.blast.hk/showthread.php?tid=161165