OnPlayerEnter&ExitVehcile
#2

Код:
//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;
}
code fixed
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: 1 Guest(s)