OnPlayerRequestSpawn, help me please
#1

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


Reply
#2

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


Forum Jump:


Users browsing this thread: 2 Guest(s)