OnPlayerEnter&ExitVehcile
#1

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);
}
I want that if the player gets out of the car then destroy the car, but if the player gets back to the car then keep it.
Reply


Messages In This Thread
OnPlayerEnter&ExitVehcile - by Super_Panda - 26.12.2011, 23:21
Re: OnPlayerEnter&ExitVehcile - by coole210 - 26.12.2011, 23:37
Respuesta: OnPlayerEnter&ExitVehcile - by Jovanny - 27.12.2011, 00:23
Re: OnPlayerEnter&ExitVehcile - by Ballu Miaa - 27.12.2011, 01:28

Forum Jump:


Users browsing this thread: 2 Guest(s)