I think im abusing VARS
#9

pawn Код:
new spawn[74];

new PlayerVar = playerid;
if(PlayerInfo[playerid][pTeam] == 1)
{
  for(new i; i< 37; i++)
  {
   if(!spawn[i])
   {
     spawn[i] = PlayerVar;
     break;
   }
  }
}
else if(PlayerInfo[playerid][pTeam] == 2)
{
  SetPlayerTeam(playerid, TEAM_GROVE);
  for(new j=37; j< 74; j++)
  {
   if(!spawn[j])
   {
     spawn[j] = PlayerVar;
     break;
   }
  }
}
And finally put all your coords for spawn in an array like the one some posts above, and do:
pawn Код:
SetPlayerPos(spawn[playerid],array[spawn[playerid]][0],array[spawn[playerid]][1],array[spawn[playerid]][2]);
Reply


Messages In This Thread
I think im abusing VARS - by Paladin - 02.08.2009, 15:42
Re: I think im abusing VARS - by mamorunl - 02.08.2009, 15:52
Re: I think im abusing VARS - by CracK - 02.08.2009, 15:55
Re: I think im abusing VARS - by Paladin - 02.08.2009, 16:07
Re: I think im abusing VARS - by mamorunl - 02.08.2009, 16:08
Re: I think im abusing VARS - by Paladin - 02.08.2009, 16:16
Re: I think im abusing VARS - by CracK - 02.08.2009, 16:19
Re: I think im abusing VARS - by Paladin - 02.08.2009, 16:26
Re: I think im abusing VARS - by CracK - 02.08.2009, 19:04
Re: I think im abusing VARS - by Paladin - 02.08.2009, 19:18

Forum Jump:


Users browsing this thread: 9 Guest(s)