[Ajuda] /limparІ
#1

@RESOLVIDO +rep A TODOS
Reply
#2

Eu nгo entendo o que vocк quer
Reply
#3

Beleza Cara Dei Uma Olhadinha Aki No Meu Sistema de /limparficha e Percibi Que o Meu Tambem Nгo Tinha Entгo Eu Ja Coloquei Esse Sistema De Motivos No Meu GM E Ja Estou Acostomado Com Isso! Vamos La

Insira Entre o
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))

Coloque Isso Entre Os 2 new result[64];
Vai Ficar Assim
PHP код:
                giveplayerid ReturnUser(tmp);
                                new 
result[64];
                if(
IsPlayerConnected(giveplayerid)) 
Depois Adicione Isso Abaixo do
PHP код:
SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring); 
Depois Coloque Isso
PHP код:
                        format(stringsizeof(string), "* Oficial %s Limpou a Ficha de %s Motivo %s.",     PlayerName(playerid), giveplayer, (result));
                        
SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring); 
Vai Ficar Assim
PHP код:
                        format(stringsizeof(string), "* Vocк limpou a ficha de %s."giveplayer);
                        
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                        
format(stringsizeof(string), "* Oficial %s Limpou Sua Ficha."PlayerName(playerid));
                        
SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring);
                        
format(stringsizeof(string), "* Oficial %s Limpou a Ficha de %s Motivo %s."PlayerName(playerid), giveplayer, (result));
                        
SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring); 
Reply
#4

tenta asim

PHP код:
if(strcmp(cmd"/limpar"true) == || strcmp(cmd"/limparficha"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(!
IsACop(playerid))
            {

                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й um policial!");
                return 
true;
            }
            if(
OnDuty[playerid] != 1)
            {

                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo Bateu o cartгo!");
                return 
true;
            }
            new 
member PlayerInfo[playerid][pMembro];
            new 
lider PlayerInfo[playerid][pLider];
            new 
rank PlayerInfo[playerid][pCargo];
            if((
gTeam[playerid] == || || 3))
            {
                if (!
PlayerToPoint(3.0playerid253.9280,69.6094,1003.6406) && !PlayerToPoint(3.0playerid198.9671,168.1982,1003.0234) && !PlayerToPoint(3.0playerid234.8419,111.2194,1003.2257) && !PlayerToPoint(3.0playerid326.8282,304.4166,999.1484) && !PlayerToPoint(3.0playerid699.6252,-553.2016,-3.5950))
                {

                    
SendClientMessage(playeridCOLOR_GRAD2"   Vocк nгo estб na recepзгo do Departamento de Policia !");
                    return 
true;
                }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {

                    
SendClientMessage(playeridCOLOR_GRAD2"USE: /limpar [playerid/PartOfName] [Motivo]");
                    return 
true;
                }
                
giveplayerid ReturnUser(tmp);
                
                new 
length strlen(cmdtext);
                while ((
idx length) && (cmdtext[idx] <= ' '))
                  {
                            
idx++;
                        }
                        new 
offset idx;
                        new 
result[64];
                        while ((
idx length) && ((idx offset) < (sizeof(result) - 1)))
                        {
                            
result[idx offset] = cmdtext[idx];
                            
idx++;
                        }
                        
result[idx offset] = EOS;
                        if(!
strlen(result))
                        {
                            
SendClientMessage(playeridCOLOR_GRAD2"USE: /limpar [playerid/PartOfName] [Motivo]");
                            return 
1;
                        }
                
                if(
IsPlayerConnected(giveplayerid))
                {

                    if(
giveplayerid != INVALID_PLAYER_ID)
                    {

                        if(
giveplayerid == playerid) { SendClientMessage(playeridCOLOR_GREY"Vocк nгo limpar sua prуpria ficha!"); return true; }
                        
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
format(stringsizeof(string), "* Vocк limpou a ficha de %s motivo: %s."giveplayer, (result));
                        
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                        
format(stringsizeof(string), "* Oficial %s Limpou a Ficha motivo: %s."PlayerName(playerid), (result));
                        
SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring);
                        
WantedPoints[giveplayerid] = 0;
                        
SetPlayerWantedLevel(giveplayerid0);
                        
ClearCrime(giveplayerid);
                        if(
gTeam[giveplayerid]==4)
                        {

                            
gTeam[giveplayerid] = 3;
                            
SetPlayerToTeamColor(giveplayerid);
                        }
                    }
                }
                else
                {

                    
SendClientMessage(playeridCOLOR_GREY"   Invalido ID/NICK!");
                }
            }
        }
        return 
true;
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)