Help with checkpoints
#2

I made a little base for it, hope it helped

pawn Код:
//Above main()
new Hacker[MAX_PLAYERS];
new Class[MAX_PLAYERS];

//OnPlayerRequestClass(playerid, classid)
Class[playerid] = classid; //Assigns Class to the classid

//OnPlayerSpawn(playerid)
switch(Class[playerid])
{
  case Id:// If the spawned player has the hacker class id, make them a Hacker.
  {
    Hacker[playerid] = 1;
  }
}
Help with classid:
Your first
pawn Код:
AddPlayerClass()
On GameModeInit() is classid 0
Your second
pawn Код:
AddPlayerClass()
On GameModeInit() is classid 1
Your third
pawn Код:
AddPlayerClass()
On GameModeInit() is classid 2
And so on. Hope this helped
Reply


Messages In This Thread
Help with checkpoints - by Roperr - 13.02.2010, 12:50
Re: Help with checkpoints - by bajskorv123 - 13.02.2010, 13:08
Re: Help with checkpoints - by Roperr - 13.02.2010, 13:26
Re: Help with checkpoints - by Roperr - 13.02.2010, 13:30
Re: Help with checkpoints - by bajskorv123 - 13.02.2010, 13:41
Re: Help with checkpoints - by Roperr - 13.02.2010, 13:46

Forum Jump:


Users browsing this thread: 1 Guest(s)