Stoping the player from spawning not workin
#1

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;}
Reply
#2

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;
}
Reply
#3

Do not make multiple threads for the same questions.

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


Forum Jump:


Users browsing this thread: 1 Guest(s)