16.01.2011, 21:50
The chackpoint 2 dont appear, only checkpoint 1 apperar
And how to remove the RED DOT on map? there the checkpoint is?
And how to remove the RED DOT on map? there the checkpoint is?
pawn Код:
#include <a_samp>
new TestCP1, TestCP2;
public OnPlayerSpawn(playerid)
{
TestCP1 = SetPlayerCheckpoint(playerid, 2239.7747, 2430.8074, 3.2734, 3.0);
TestCP2 = SetPlayerCheckpoint(playerid, 2243.4456, 2490.6458, 3.2734, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(TestCP1)
{
SendClientMessage(playerid, 0xFF0000FF, "You have entered CheckPoint 1");
return 1;
}
if(TestCP2)
{
SendClientMessage(playerid, 0xFF0000FF, "You have entered CheckPoint 2");
return 1;
}
return 1;
}