29.06.2009, 17:34
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.
Any idea's ?
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;
}