SA-MP Forums Archive
OnPlayerRequestSpawn, help me please - 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: OnPlayerRequestSpawn, help me please (/showthread.php?tid=263918)



OnPlayerRequestSpawn, help me please - handerson - 24.06.2011

Quote:

public OnPlayerRequestSpawn(playerid)
{
SetPlayerToTeamColour(playerid);
if(classid == 2 || classid == 5 || classid == 8 || classid == 11)
{
if(GetPlayerScore(playerid) < 110)
{
how to make player cannot spawn
}

i want player cant spawn if they dont have score < 110, they cant spawn with those classid





Re: OnPlayerRequestSpawn, help me please - dr.pepper - 24.06.2011

return 0; goes here: how to make player cannot spawn

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
SetPlayerToTeamColour(playerid);
if(classid == 2 || classid == 5 || classid == 8 || classid == 11)
{
if(GetPlayerScore(playerid) < 110)
{
return 0; // how to make player cannot spawn
}
return 1;
}