cp problem
#2

pawn Код:
new cp1[MAX_PLAYERS];
new cp2[MAX_PLAYERS];

pawn Код:
// Somewhere in script (maybe in command ex. /setcheckpoint)
SetPlayerCheckpoint(playerid, 1520.5525,-2604.5759,13.5469,3);
cp1[playerid] = 1;

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
   if(cp1[playerid] == 1)
   {
      DisablePlayerCheckpoint(playerid);
      SetPlayerCheckpoint(playerid, 246.6656,65.0490,1003.6406,3);
      SetPlayerPos(playerid, 246.4716,70.0103,1003.6406);
      cp2[playerid] = 1;
      cp1[playerid] = 0;
   }
   else if(cp2[playerid] == 1)
   {
     // Do something
   }
Reply


Messages In This Thread
cp problem - by [D1zZy_vortex] - 05.03.2009, 17:42
Re: cp problem - by Dujma - 05.03.2009, 17:54
Re: cp problem - by [D1zZy_vortex] - 05.03.2009, 17:55
Re: cp problem - by [RP]Rav - 05.03.2009, 17:57
Re: cp problem - by Dujma - 05.03.2009, 17:57
Re: cp problem - by Lucas Giovanni - 05.03.2009, 17:57
Re: cp problem - by Dujma - 05.03.2009, 17:58
Re: cp problem - by Lucas Giovanni - 05.03.2009, 17:58
Re: cp problem - by [D1zZy_vortex] - 05.03.2009, 18:27
Re: cp problem - by 1337pr0 - 05.03.2009, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)