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

Hello, i made a command "hood" before, it was working before, but now it isnt working anymore.
Here's the command:
Код:
CMD:hood(playerid, params[])
{
	for (new i = 1; i != MAX_VEHICLES; i ++) if (IsValidVehicle(i) && IsPlayerNearHood(playerid, i))
	{
	    if (!IsDoorVehicle(i))
	        return SendClientMessage(playerid, -1,  "{FF0000}Error:{FFFFFF}This Vehicle Doesn't Have Hood.");

	    if (!GetHoodStatus(i))
		{
	        SetHoodStatus(i, true);
	        SendClientMessage(playerid, -1, "You Have {00FF40}Opened{FFFFFF} The Hood");		
		}
		else
		{
		SetHoodStatus(i, false);
		SendClientMessage(playerid, -1, "You Have {FF0000}Closed {FFFFFF}The Hood");			  
		}
	    return 1;
	}
	SendClientMessage(playerid, -1, "{FF0000}Error:{FFFFFF}You Are Not In Range Of Any Vehicle");
	return 1;
}
This does not shows any error or warnings.

This will work if m near or at a vehicle with no door. (i.e any bike).

But when im near any car which has door, or hood. It will simply say you're not in range of any vehicle.

it was working before as it is, but doesnt work now.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)