27.12.2011, 00:23
pawn Код:
//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));
printf("Se ha destruнdo el vehнculo de %s despues de 30 segundos de espera.",name);
}
else
{
KillTimer(msgtimer[playerid]);
}
return 1;
}
EDIT: Super Panda, you can ask for help in Spanish section and we will help, I speak Spanish, speak little English