11.07.2011, 15:48
pawn Код:
new CheckRespawn;
pawn Код:
public OnGameModeInit()
{
CheckRespawn = SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
return 1;
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(CheckRespawn[playerid] == 1)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(vehicleid);
SendClientMessage(playerid, -1, "[!] Your vehicle was respawn!");
return 1;
}
return 1;
}