Timer when player enters vehicle
#4

Or Trying this as well ?

PHP код:
new IsInVeh[MAX_PLAYERS];
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger

    if(
GetVehicleModel(vehicleid) == your id
    { 
         
SetTimerEx("Message"5000false"i"playerid); 
         
IsInVeh[playerid] = 1;
    } 
    return 
1

public 
OnPlayerExitVehicle(playeridvehicleid)
{
        
IsInVeh[playerid] = 0;
    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

    if(
IsInVeh[playerid] = 1)

     new 
Float:xFloat:yFloat:
     GetPlayerPos
(playerid,x,y,z); 
     
CreateExplosion(x,y,z,1210.0); 
     
SendClientMessage(playerid, -1"Trapped LOL."); 
 }
     return 
1

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)