Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Convert strcmd to zcmd

$
0
0
Please convert me this cmds strcmp to zcmd .

Code:

if(strcmp(cmdtext,"/fixall",true)==0)
{
 if(PlayerInfo[playerid][Level] >= 10){
  for(new i = 0; i < MAX_PLAYERS; i++){
  SetVehicleHealth(GetPlayerVehicleID(i),1250.0);
  RepairVehicle(GetPlayerVehicleID(i));
  }
  SendClientMessage(playerid,red,"Vehiculos del server reparados");
    new jugador[256];
    GetPlayerName(playerid,jugador,sizeof(jugador));
    new enviador[256];
    CMDMessageToAdmins(playerid,"FIXALL");
    SoundForAll(1057);
    format(enviador,256,"{FFFF00}El Administrador {FFFFFF}%s {FFFF00}Ha Reparado Todos Los Autos Del Server",jugador);
    return SendClientMessageToAll(red,enviador);
    } else return SendClientMessage(playerid,red,"{FFFFFF}ERROR: {29FF0D}Necesitas ser {FFFFFF}Administrador nivel 9 {29FF0D}para usar este comando");
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>