15.12.2014, 13:21
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; }