26.06.2017, 19:20
Hola amigo, pruebe este codigo aquн si me da error avise en el PM
PHP код:
COMMAND:repairall(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < MAX_NIVEL_ADMIN && PlayerInfo[playerid][pVIP] < MAX_NIVEL_VIP )
return SendClientMessage(playerid, COLOR_ROJO, "ERROR:No Tienes Permiso Para Usar Este Comando");
// 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, "Todos los vehiculos fueron reparados por un admin");
return true;
}