26.12.2011, 23:37
Код:
//TOP: new msgtimer[MAX_PLAYERS]; // public OnPlayerExitVehicle(playerid, vehicleid) { SendClientMessage(playerid,-1,"You have 30 seconds to get back in the car !"); msgtimer[playerid] = SetTimerEx("message",30000,false,"dd",playerid,vehicleid); return 1; } forward message(playerid,vehicleid); public message(playerid,vehicleid) { if(GetPlayerVehicleID(playerid) != vehicleid) { DestroyVehicle(vehicleid); new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); print("Se ha destruнdo el vehнculo de %s despues de 30 segundos de espera.",name); } else { KillTimer(msgtimer[playerid]); } return 1; }