20.06.2009, 04:40
Hi i am trying to code a checkpoint to appear when someone gets into a truck (id= 515). This is my code.
Can anyone see the problem?
Thanks in advance,
Josh
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (vehicleid == 515)
{
SetPlayerCheckpoint(playerid,2385.4553,28.5155,26.4844, 10);
}
else {
SendClientMessage(playerid, 0xffffffAA, "Not The Right Vehicle");
}
return 1;
}
Thanks in advance,
Josh

