Timer when player enters vehicle
#7

My fault.. x)

Try this one :


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 
pveh =GetPlayerVehicleID(playerid);
     new 
Float:xFloat:yFloat:z  
     GetVehiclePos
(pvehxyz);
     
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: 3 Guest(s)