[Ajuda] Como arrumar isso
#3

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;
}

Reply


Messages In This Thread
Como arrumar isso - by zzCapiroto - 06.05.2014, 04:19
Re: Como arrumar isso - by davi54723 - 06.05.2014, 05:42
Re: Como arrumar isso - by zzCapiroto - 06.05.2014, 16:44
Re: Como arrumar isso - by LordShadow - 06.05.2014, 18:14
Re: Como arrumar isso - by zzCapiroto - 06.05.2014, 18:41
Re: Como arrumar isso - by LordShadow - 07.05.2014, 00:15

Forum Jump:


Users browsing this thread: 1 Guest(s)