01.10.2018, 20:00
Quote:
COMMAND:carros(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 } else return 0; } else return 0; // Let the server know that this was a valid command return 1; } |