08.03.2014, 06:49
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 0, 0, 0, 3.0); //fill the things...
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
TogglePlayerControllable(playerid,0);
SetTimerEx("srepair",10000,0,"i",playerid);
return 1;
}
forward srepair(playerid);
public srepair(playerid)
{
TogglePlayerControllable(playerid,1);
RepairVehicle(GetPlayerVehicleID(playerid));
GameTextForPlayer(playerid,"~n~~g~Vehicle ~r~Repaired",3000,3);
return 1;
}