[Ajuda] Muda Code zcmd > strcmp
#1

Bom, eu nгo entendo nada de zcmd, entгo queria que alguem me ajuda-se a passa esse "FS" ( code ) para strcmp
Obrigado.

http://pastebin.com/b03HGq13
Reply
#2

Mano recomendo usar zcmd e bem melhor.
Reply
#3

Nгo entendo nada de zcmd :/, e meu gm ta todo strcmp
Reply
#4

PHP код:
if (strcmp("/dm"cmdtexttrue10) == 0){
        if(!
gPlayerLogged[playerid])return SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб logado !");
        new 
id;
        
        if(
sscanf(params"u"id))
        {
            
SendClientMessage(playeridCOLOR_GRAD1"USE: /dm [ID do Player]");
            
SendClientMessage(playeridCOLOR_LIGHTRED"OBS: Apenas acuse o jogador se for realmente DM, ou serб punido pelos admins !");
            return 
1;
        }
        if(!
IsPlayerConnected(id))return SendClientMessage(playeridCOLOR_GRAD1"O jogador estб offline !");
        if(
id == playerid) { SendClientMessage(playeridCOLOR_GREY"Vocк nгo pode se acusar de DM!"); return true; }
        if(
gettime() < GetPVarInt(playerid#VarFlood7))
            
return SendClientMessage(playeridCOLOR_GRAD1#Vocк nгo pode usar este comando com tanta frequencia);
        
SetPVarInt(playerid#VarFlood7, gettime()+20);
        
new string[MAX_STRING];
        
format(stringsizeof string"[DM]: %s [ID: %d] acusou %s [ID: %d], resultado: %s"NomePlayer(playerid),playerid,NomePlayer(id),id,ResultadoDM(playerid,id));
        
ABroadCast(COLOR_LIGHTRED,string,1);
        
BPSLogs("DM"string);
        
format(stringsizeof string"*Vocк acusou %s[ID: %d] de cometer DM, resultado: %s"NomePlayer(id),idResultadoDM(playerid,id));
        
SendClientMessage(playeridCOLOR_GRAD1string);
        
SendClientMessage(playeridCOLOR_GRAD5"OBS: Caso voce acusou o jogador injustamente, vocк serб punido por um admin !");
        return 
1;

Reply
#5

Quote:
Originally Posted by LockedLucas
Посмотреть сообщение
Mano recomendo usar zcmd e bem melhor.
Falei Isso ja pra ele
Reply
#6

Quote:
Originally Posted by iTakelot
Посмотреть сообщение
PHP код:
if (strcmp("/dm"cmdtexttrue10) == 0){
        if(!
gPlayerLogged[playerid])return SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб logado !");
        new 
id;
        
        if(
sscanf(params"u"id))
        {
            
SendClientMessage(playeridCOLOR_GRAD1"USE: /dm [ID do Player]");
            
SendClientMessage(playeridCOLOR_LIGHTRED"OBS: Apenas acuse o jogador se for realmente DM, ou serб punido pelos admins !");
            return 
1;
        }
        if(!
IsPlayerConnected(id))return SendClientMessage(playeridCOLOR_GRAD1"O jogador estб offline !");
        if(
id == playerid) { SendClientMessage(playeridCOLOR_GREY"Vocк nгo pode se acusar de DM!"); return true; }
        if(
gettime() < GetPVarInt(playerid#VarFlood7))
            
return SendClientMessage(playeridCOLOR_GRAD1#Vocк nгo pode usar este comando com tanta frequencia);
        
SetPVarInt(playerid#VarFlood7, gettime()+20);
        
new string[MAX_STRING];
        
format(stringsizeof string"[DM]: %s [ID: %d] acusou %s [ID: %d], resultado: %s"NomePlayer(playerid),playerid,NomePlayer(id),id,ResultadoDM(playerid,id));
        
ABroadCast(COLOR_LIGHTRED,string,1);
        
BPSLogs("DM"string);
        
format(stringsizeof string"*Vocк acusou %s[ID: %d] de cometer DM, resultado: %s"NomePlayer(id),idResultadoDM(playerid,id));
        
SendClientMessage(playeridCOLOR_GRAD1string);
        
SendClientMessage(playeridCOLOR_GRAD5"OBS: Caso voce acusou o jogador injustamente, vocк serб punido por um admin !");
        return 
1;


Код:
if(sscanf(cmdtext, "u", id))
Reply
#7

Nunca й tarde para se aprender !
Reply
#8

Resolvido, Obrigado a todos.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)