19.05.2014, 10:25
pawn Код:
forward respawn();
new v_id;
public OnPlayerExitVehicle(playerid, vehicleid)
{
new id = GetVehicleID(vehicleid);
if(GetPlayerVehicleAccess(playerid, id) < 1)
{
SendClientMessage(playerid,0x96FFF3FF,"{96FFF3}Sa lahkusid masinast! See ei ole sinu masin, seega see respawnib 10 sekundi pдrast!");
SetTimer("respawn", 10000, false);
v_id = vehicleid;
}
else return SendClientMessage(playerid,0x96FFF3FF,"{96FFF3}Sa lahkusid masinast!");
return 1;
}
public respawn()
{
DestroyVehicle(v_id);
}