How to use this on one type of vehicle
#1

How can I transform this instead of just one Ambulance, It does it for every one spawned ever?


Код:
new ambulance;
ambulance = AddStaticVehicle(cords...)
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{   
      if(newstate == PLAYER_STATE_DRIVER)    
         {        
            new veh = GetPlayerVehicleID(playerid);        
            new pskin=GetPlayerSkin(playerid);        
            if(pskin != 275 || pskin != 276 && veh == ambulance)           
               {                
           RemovePlayerFromVehicle(playerid);                
        SendClientMessage(playerid, 0x00FF00AA, "This vehicle is only for Medics!");                
     return 1;            
   }        
return 1;   
 }
Reply


Messages In This Thread
How to use this on one type of vehicle - by Jacob_T_Harden - 15.01.2011, 05:18
Re: How to use this on one type of vehicle - by GangsTa_ - 15.01.2011, 05:34
Re: How to use this on one type of vehicle - by Jacob_T_Harden - 15.01.2011, 05:38
Re: How to use this on one type of vehicle - by PeteShag - 15.01.2011, 05:55
Re: How to use this on one type of vehicle - by Jacob_T_Harden - 15.01.2011, 06:01

Forum Jump:


Users browsing this thread: 2 Guest(s)