command unknown
#3

I made it this way but now when I use the command the dialog won't appear and it doesn't say that the command is unknown

Код:
// 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
		}
	}
	// 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)