OnPlayerEnter SPECIFIC/UNIQUE Vehicle
#4

PHP код:
new arrMissionVeh[3];
#define gVeh GetPlayerVehicleID

public OnGameModeInit(){
    
arrMissionVeh[0]=CreateVehicle(5220.00.00.0,0.0, -1, -160);
    
arrMissionVeh[1]=CreateVehicle(5220.00.00.0,0.0, -1, -160);
    
arrMissionVeh[2]=CreateVehicle(5220.00.00.0,0.0, -1, -160);
    return 
1;
}

public 
OnPlayerStateChange(playeridnewstateoldstate){
    new 
vid=gVeh(playerid);
    if(    
oldstate==PLAYER_STATE_ONFOOT && 
        
newstate==PLAYER_STATE_DRIVER &&
        
vid==arrMissionVeh[1]){
        
//your mission code here
    
}
    return 
1;

Reply


Messages In This Thread
OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Adamoneoone - 25.06.2018, 08:01
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by 0xDC143CAA - 25.06.2018, 08:30
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Adamoneoone - 25.06.2018, 08:31
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by CodeStyle175 - 25.06.2018, 08:52
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Verc - 25.06.2018, 09:00
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Sew_Sumi - 25.06.2018, 09:12
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by CodeStyle175 - 25.06.2018, 09:15
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Sew_Sumi - 25.06.2018, 09:40
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Adamoneoone - 25.06.2018, 10:09
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by JasonRiggs - 25.06.2018, 10:19

Forum Jump:


Users browsing this thread: 2 Guest(s)