SA-MP Forums Archive
Detect "Spawn" button press - 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)
+--- Thread: Detect "Spawn" button press (/showthread.php?tid=387676)



Detect "Spawn" button press - Brandlax - 25.10.2012

How do I detect when the player presses the 'Spawn' button on the Player Class Selection?


Re: Detect "Spawn" button press - MechaTech - 25.10.2012

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    return 1;
}
This needs to be in your gamemode. (standard)


Re: Detect "Spawn" button press - PaulDinam - 25.10.2012

Код:
public OnPlayerRequestSpawn(playerid)
{
    return 0;
}



Re: Detect "Spawn" button press - CmZxC - 25.10.2012

that means they can not spawn..
return 1; allows them to spawn