06.05.2014, 16:44
esse й o comando no gamemode pra bota gasolina como faзo pra botar na filterscript e funfar?
Quote:
COMMAND:gasosal(playerid, params[]) { // Setup local variables new vID; // Send the command to all admins so they can see it SendAdminText(playerid, "/gasosa", 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) { // Check if the player is inside a vehicle if (IsPlayerInAnyVehicle(playerid)) { // Get the vehicleid vID = GetPlayerVehicleID(playerid); // Refuel the vehicle AVehicleData[vID][Fuel] = MaxFuel; // Let the player know about it SendClientMessage(playerid, 0x00FF00FF, "O Seu Veiculo foi Reabastecido!"); } else SendClientMessage(playerid, 0x00FF00FF, "Voce nao esta em um Veiculo"); } else return 0; } else return 0; // Let the server know that this was a valid command return 1; } |