admin vehicle
#2

You should use this code under OnPlayerStateChange
PHP код:

public OnPlayerEnterVehicle(playeridvehicleidispassenger

   if(
pData[playerid][pAdmin] < 1
   { 
     if(
vehicleid == 601
     { 
        
ClearAnimations(playerid); 
        
GameTextForPlayer(playerid,"Admin Vehicle",3000,4); 
     } 
   } 
   return 
1

Like this
PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)

    if( 
newstate == PLAYER_STATE_DRIVER && GetVehicleModelGetPlayerVehicleIDplayerid )) == 601 && pData[playerid][pAdmin] < 1)
    {
                
RemovePlayerFromVehicleplayerid );
                
GameTextForPlayerplayerid"~r~~h~Admin Vehicle.!"3000);
    }
   return 
1

Reply


Messages In This Thread
admin vehicle - by ALoX12 - 13.07.2015, 18:24
Re: admin vehicle - by MBilal - 13.07.2015, 18:29
Re: admin vehicle - by STONEGOLD - 13.07.2015, 19:03
Re: admin vehicle - by ALoX12 - 13.07.2015, 19:03
Re: admin vehicle - by SpikeSpigel - 13.07.2015, 19:06
Re: admin vehicle - by Sithis - 13.07.2015, 19:09
Re: admin vehicle - by Sime30 - 13.07.2015, 19:16

Forum Jump:


Users browsing this thread: 1 Guest(s)