26.12.2011, 23:21
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
SetTimer("message", 30000, false);
return 1;
}
forward message(playerid);
public message(playerid)
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
DestroyVehicle(currentveh);
new name[MAX_PLAYER_NAME], string[124+MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Se ha destruнdo el vehнculo de %s despues de 30 segundos de espera.", name);
print(string);
}