Trouble
#1

I got dragsta's CPS it worked up untill i added another CP this is what it looks like. When I added the 2nd CP they all gone.

pawn Код:
public OnGameModeInit()
{
    StartSystem();
    DisableInteriorEnterExits();

   
    ammunation1 = CreateCheckpoint(0, Float:2625.8442,Float:208.2459,Float:4.8125, Float:1.0, Float:40);
    ammunation2 = CreateCheckpoint(0, Float:2159.4297,Float:941.7069,Float:10.8203, Float:1.0, Float:40);
    return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
    ClearVars(playerid);
    SyncCheckpoints(playerid);
    ammunation1 = CreateCheckpoint(playerid, 2625.8442,208.2459,4.8125, 1.0, 40);
    ammunation2 = CreateCheckpoint(playerid, 2671.4253,257.9249,4.6328, 1.0, 40);
    return 1;
}
pawn Код:
public OnPlayerEnterStreamedCheckpoint(playerid, streamid) //stream id = CP id :D
{
  if(streamid == ammunation1)
  {
    GameTextForPlayer(playerid,"Ammunation CP!",3000,5);
  }

  if(streamid == ammunation2)
  {
    GameTextForPlayer(playerid,"Ammunation CP 2!",3000,5);
  }

  return 1;
}
Any idea's ?
Reply


Messages In This Thread
Trouble - by 6tynine - 29.06.2009, 17:34
Re: Trouble - by Ignas1337 - 29.06.2009, 17:37
Re: Trouble - by 6tynine - 29.06.2009, 17:45
Re: Trouble - by 6tynine - 29.06.2009, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)