03.06.2012, 23:09
hello. here is my work checkpoint timer:
how i make so "SetPlayerCheckpoint(playerid,1827.8311,-1075.7113,23.9317,3.0);" checkpoint can refresh every 2 seconds?
pawn Код:
COMMAND:work(playerid, cmdtext)
{
if (!IsPlayerInRangeOfPoint(playerid, 7.0, -64.1551,-1120.6709,1.0781))
{
return SendClientMessage(playerid, COLOR_RED, "You're not in range of the job");
}
else
{
SendClientMessage(playerid, blue, "Welcome to work!");
SendClientMessage(playerid, yellow, "Please drive to the checkpoint to recieve your reward.");
new thevehicle = CreateVehicle(498, -79.2382, -1128.1711, 1.0781, 0.0, 0, 0, 5000);
PutPlayerInVehicle(playerid, thevehicle, 0);
SetPlayerCheckpoint(playerid,1827.8311,-1075.7113,23.9317,3.0);
}
return 1;
}