Can't spawn
#6

I had this problem. This is what i did:

pawn Код:
new bool:pSkipClass[MAX_PLAYERS];
stock OnPlayerLogin(playerid)
{
 pSkipClass[playerid] = true;
}

public OnPlayerRequestClass(playerid, classid)
{
 if(pSkipClass[playerid] == true)
 {
  pSkipClass[playerid] = false;
  SetTimerEx("PublicSpawn", 1, false, "i", playerid);
  return 1;
 }
 //Rest of the code goes here
 return 1;
}

forward PublicSpawn(playerid);
public PublicSpawn(playerid) SpawnPlayer(playerid);
Reply


Messages In This Thread
Can't spawn - by feartonyb - 04.07.2013, 10:38
Re: Can't spawn - by Konstantinos - 04.07.2013, 10:41
Re: Can't spawn - by feartonyb - 04.07.2013, 10:45
Re: Can't spawn - by feartonyb - 04.07.2013, 11:23
Re : Can't spawn - by KimSangBum - 04.07.2013, 11:27
Re: Can't spawn - by RedFusion - 04.07.2013, 11:36
Re: Can't spawn - by feartonyb - 04.07.2013, 13:29
Re: Can't spawn - by IceBilizard - 04.07.2013, 13:33
Re: Can't spawn - by GNGification - 04.07.2013, 13:35
Re: Can't spawn - by feartonyb - 04.07.2013, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)