Timer when player enters vehicle
#2

Here you go,

PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    if(
GetVehicleModel(vehicleid) == your id)
    {
         
SetTimerEx("Message"5000false"i"playerid);
    }
    return 
1;
}
forward Message(playerid);
public 
Message(playerid)
{
     
SendClientMessage(playerid, -1"Welcome to the vehicle.");
     
SetTimerEx("Explosion"5000false"i"playerid);
     return 
1;
}
forward Explosion(playerid);
public 
Explosion(playerid)
{
     new 
Float:xFloat:yFloat:z
     GetPlayerPos
(playerid,x,y,z);
     
CreateExplosion(x,y,z,1210.0);
     
SendClientMessage(playerid, -1"Trapped LOL.");
     return 
1;

Hope that helps, Rep if it does lol ^^

KillerDVX,
Reply


Messages In This Thread
Timer when player enters vehicle - by aalbero99 - 10.07.2015, 23:59
Re : Timer when player enters vehicle - by KillerDVX - 11.07.2015, 00:13
Re: Timer when player enters vehicle - by M4D - 11.07.2015, 00:17
Re : Timer when player enters vehicle - by KillerDVX - 11.07.2015, 00:20
Respuesta: Timer when player enters vehicle - by aalbero99 - 11.07.2015, 00:33
Respuesta: Timer when player enters vehicle - by aalbero99 - 11.07.2015, 00:38
Re : Timer when player enters vehicle - by KillerDVX - 11.07.2015, 00:42
Re: Timer when player enters vehicle - by M4D - 11.07.2015, 00:47
Respuesta: Re: Timer when player enters vehicle - by aalbero99 - 11.07.2015, 00:57
Respuesta: Re: Timer when player enters vehicle - by aalbero99 - 11.07.2015, 01:02

Forum Jump:


Users browsing this thread: 1 Guest(s)