28.08.2012, 22:41
I Use a PPC Admin System Here is 1 Cmd From PPC:
// Repairs all vehicles
COMMAND:repairall(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/repairall", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 3
if (APlayerData[playerid][PlayerLevel] >= 3)
{
// Loop through all vehicles
for (new i; i < 2000; i++)
RepairVehicle(i); // Fully repair the vehicle (damage value and bodywork)
// Send all players a message to inform them that all vehicles have been repaired
SendClientMessageToAll(0x00FF00FF, "All vehicles have been successfully repaired!");
}
else
return 0;
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}
To use The Announce Cmd I U have It Be level 1 Any Help?
// Repairs all vehicles
COMMAND:repairall(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/repairall", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 3
if (APlayerData[playerid][PlayerLevel] >= 3)
{
// Loop through all vehicles
for (new i; i < 2000; i++)
RepairVehicle(i); // Fully repair the vehicle (damage value and bodywork)
// Send all players a message to inform them that all vehicles have been repaired
SendClientMessageToAll(0x00FF00FF, "All vehicles have been successfully repaired!");
}
else
return 0;
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}
To use The Announce Cmd I U have It Be level 1 Any Help?