CMD:hood (it was working before, not anymore) ;_;
#5

PHP код:
CMD:hood(playeridparams[])
{
    for (new 
1!= MAX_VEHICLES++) if (IsValidVehicle(i) && IsPlayerNearHood(playeridi))
    {
        if (!
IsDoorVehicle(i))
            return 
SendClientMessage(playerid, -1,  "{FF0000}Error:{FFFFFF}This Vehicle Doesn't Have Hood.");
        if (!
GetHoodStatus(i))
        {
            
SetHoodStatus(itrue);
            
SendClientMessage(playerid, -1"You Have {00FF40}Opened{FFFFFF} The Hood");        
        }
        else
        {
        
SetHoodStatus(ifalse);
        
SendClientMessage(playerid, -1"You Have {FF0000}Closed {FFFFFF}The Hood");              
        }
    }
    else 
SendClientMessage(playerid, -1"{FF0000}Error:{FFFFFF}You Are Not In Range Of Any Vehicle");
    return 
1;

I wish this gonna work try it out
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)