Problema con comando
#2

PHP код:
CMD:sacarmute(playeridparams[])
{
    new 
cmdid;
    if(
Informacion[playerid][Identificado] == 0) return SendClientMessage(playerid,COLOR_ROJO,"* Debes estar identificado para usar este comando");
    if(
Informacion[playerid][Admin] < 2)return SendClientMessage(playerid,COLOR_ROJO,"** Solo pueden usar este comando administradores de nivel 2");
    if(
sscanf(params"u"cmdid)) return SendClientMessage(playerid,COLOR_ROJO,"* Uso: /sacarmute [playerid]");
    if(
cmdid == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_ROJO,"* ID no encontrada");
    if(
Informacion[cmdid][Muted] == 0) return SendClientMessage(playerid,COLOR_ROJO,"* Jugador no muteado");
    
Informacion[cmdid][Muted] = 0;
    new 
str[90];
    
format(str,sizeof(str),"** Administrador %s (%d) te ha des-silenciado",Nume(playerid),playerid);
    
SendClientMessage(cmdid,COLOR_ROJO,str);
    return 
1;

Reply


Messages In This Thread
Problema con comando - by Jeree10 - 17.05.2015, 20:08
Respuesta: Problema con comando - by armandozetaxx - 17.05.2015, 20:54
Respuesta: Problema con comando - by Jeree10 - 17.05.2015, 21:00
Respuesta: Problema con comando - by armandozetaxx - 17.05.2015, 21:21
Respuesta: Problema con comando - by Jeree10 - 17.05.2015, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)