[Ajuda] KEY_YES
#2

Coloque na OnPlayerKeyStateChange

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if ((
newkeys KEY_YES) && !(oldkeys KEY_YES))
    {
        
        new 
vehicleidengine,lights,alarm,doors,bonnet,boot,objective;
        
vehicleid GetPlayerVehicleID(playerid);
        
GetVehicleParamsEx(vehicleidenginelightsalarmdoorsbonnetbootobjective);
        if (
vehicleid != 0)
        {
            
            if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
            {
                if(
lights == 0)
                {
                    
                    
SetVehicleParamsEx(vehicleidengine1alarmdoorsbonnetbootobjective);
                }
                else
                
SetVehicleParamsEx(vehicleidengine0alarmdoorsbonnetbootobjective);
            }
        }
    }
return 
1;

Reply


Messages In This Thread
KEY_YES - by matheusspohr - 07.05.2015, 06:48
Re: KEY_YES - by DiegoCosta - 07.05.2015, 07:00
Re: KEY_YES - by LuisFerreira - 07.05.2015, 15:12
Re: KEY_YES - by DiegoCosta - 07.05.2015, 15:22
Re: KEY_YES - by LuisFerreira - 07.05.2015, 15:25
Re: KEY_YES - by DiegoCosta - 07.05.2015, 15:29
Re: KEY_YES - by LuisFerreira - 07.05.2015, 15:31
Re: KEY_YES - by Bruno13 - 07.05.2015, 16:30
Re: KEY_YES - by matheusspohr - 07.05.2015, 16:35
Re: KEY_YES - by Bruno13 - 07.05.2015, 16:35

Forum Jump:


Users browsing this thread: 3 Guest(s)