09.09.2009, 22:56
I got this codes:
How can i do for this : When the player pass on the checkpoint it delete the checkpoint and set a new one to an other place.
Sorry for my English.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/start", cmdtext, true, 6) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehid) == 574)
{
SetPlayerCheckpoint(playerid, -147.1910, 1146.1820, 19.5938, 3.0);
SendClientMessage(playerid, 0xFF66FFAA, "Sweeper Job Accepted.");
}
else SendClientMessage(playerid, 0xFF66FFAA, "You need to be in a Sweeper, to use this command!");
}
else SendClientMessage(playerid, 0xFF66FFAA, "You need to be in a sweeper, to use this command!");
return 1;
}
return 0;
}
Код:
public OnPlayerEnterCheckpoint(playerid)
{
GivePlayerMoney(playerid, 1500);
DisablePlayerCheckpoint(playerid);
return 1;
}
Sorry for my English.


