command unknown
#1

So i got this command where the admin can spawn any car of choice using the command /car and vip players can do the same by using the command /vcar but for some reason for vip it says that the command is unknown even tho the gamemode compiles perfectly.

Here are the codes for both commands :

Код:
// Lets the player choose a car to spawn (in a split list which shows only 10 cars at a time)
COMMAND:vcar(playerid, params[])
{
	// Check if the player has logged in
	if (APlayerData[playerid][LoggedIn] == true)
	{
	    // Check if the player's admin-level is at least 1
        if(PlayerInfo[playerid][pVIP] >= 2)
        {
	        // Make sure the player isn't inside a vehicle
			if(GetPlayerVehicleID(playerid) == 0)
	        CarList_Create(playerid); // Create a list of cars (only the first 10 cars) and show the dialog so the player can choose a car
	        return 1;
		}
	}
	else
	    return 0;

	// Let the server know that this was a valid command
	return 1;
}

// Lets the player choose a car to spawn (in a split list which shows only 10 cars at a time)
COMMAND:car(playerid, params[])
{
	// Check if the player has logged in
	if (APlayerData[playerid][LoggedIn] == true)
	{
		// Check if the player's admin-level is at least 1
		if (APlayerData[playerid][PlayerLevel] >= 1)
		{
	        // Make sure the player isn't inside a vehicle
			if(GetPlayerVehicleID(playerid) == 0)
	        CarList_Create(playerid); // Create a list of cars (only the first 10 cars) and show the dialog so the player can choose a car
	        return 1;
		}
	}
	else
	    return 0;

	// Let the server know that this was a valid command
	return 1;
}
Reply


Messages In This Thread
command unknown - by Jhony_Blaze - 15.12.2014, 13:06
Re : command unknown - by streetpeace - 15.12.2014, 13:10
Re: command unknown - by Jhony_Blaze - 15.12.2014, 13:21
Re: command unknown - by Jhony_Blaze - 15.12.2014, 14:09
Re: command unknown - by BroZeus - 15.12.2014, 14:25

Forum Jump:


Users browsing this thread: 1 Guest(s)