[Ajuda] Ficha
#1

Alguem ae tem algo Que quando digita /minhaficha aparece a ficha do cara Level de procurado , Se ta de TH , RP , Etc ou algo parecido Se alguem tiver agradeзo !
Reply
#2

Para isso precisamos saber suas variaveis de Procurado,e as demais que quer que apareзa na ficha.
Reply
#3

onde vejo as variaveis ?
Reply
#4

Qual GM vocк usa?
Reply
#5

GM Elite
Reply
#6

Jб tem o comando /ficha eu acho...
Reply
#7

Se bem me lembro, jб existe o comando /ficha.
Vocк pode aproveitar ele pra fazer o /minhaficha, que й mais simples...
Reply
#8

olha ai
PHP код:
    if(strcmp(cmd"/ficha"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(!
IsACop(playerid))
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й um Policial !");
                return 
1;
            }
            new 
tmpcar GetVehicleModel(GetPlayerVehicleID(playerid));
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USO: /ficha [playerid/Parte-do-Nick]");
                return 
1;
            }
            
//giveplayerid = strval(tmp);
            
giveplayerid ReturnUser(tmp);
            if(
IsACopCar(tmpcar)||PlayerToPoint(3.0playerid256.7864,66.0127,1003.6406)||tmpcar==490||tmpcar==497||tmpcar==528||tmpcar==602||tmpcar==426||tmpcar==427||tmpcar==598||tmpcar==581||tmpcar==470||tmpcar==461)
            {
                if(
IsPlayerConnected(giveplayerid))
                {
                    if(
giveplayerid != INVALID_PLAYER_ID)
                    {
                        
GetPlayerName(giveplayeridsendernamesizeof(sendername));
                        
SendClientMessage(playeridTEAM_BLUE_COLOR,"______-=FICHA CRIMINAL * MINISTЙRIO DA DEFESA=-_______");
                        
format(stringsizeof(string), "Nome : %s"sendername);
                        
SendClientMessage(playeridCOLOR_WHITE,string);
                        
format(stringsizeof(string), "Crime : %s"PlayerCrime[giveplayerid][pAccusedof]);
                        
SendClientMessage(playeridCOLOR_GRAD2,string);
                        
format(stringsizeof(string), "Vнtima : %s"PlayerCrime[giveplayerid][pVictim]);
                        
SendClientMessage(playeridCOLOR_GRAD3,string);
                        
format(stringsizeof(string), "Relato : %s"PlayerCrime[giveplayerid][pAccusing]);
                        
SendClientMessage(playeridCOLOR_GRAD4,string);
                        
format(stringsizeof(string), "Acusado : %s"PlayerCrime[giveplayerid][pBplayer]);
                        
SendClientMessage(playeridCOLOR_GRAD5,string);
                        
SendClientMessage(playeridTEAM_BLUE_COLOR,"_______________________________________");
                    }
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_RED"   O jogador estб offline !");
                    return 
1;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD2"   Vocк nгo estб em um Carro de Polнcia ou no Departamento.");
                return 
1;
            }
        }
        return 
1;
    } 
Reply
#9

pawn Код:
if(strcmp(cmd, "/minhaficha", true) == 0)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        SendClientMessage(playerid, TEAM_BLUE_COLOR,"______-=FICHA CRIMINAL * MINISTЙRIO DA DEFESA=-_______");
        format(string, sizeof(string), "Nome : %s", sendername);
        SendClientMessage(playerid, COLOR_WHITE,string);
        format(string, sizeof(string), "Crime : %s", PlayerCrime[playerid][pAccusedof]);
        SendClientMessage(playerid, COLOR_GRAD2,string);
        format(string, sizeof(string), "Vнtima : %s", PlayerCrime[playerid][pVictim]);
        SendClientMessage(playerid, COLOR_GRAD3,string);
        format(string, sizeof(string), "Relato : %s", PlayerCrime[playerid][pAccusing]);
        SendClientMessage(playerid, COLOR_GRAD4,string);
        format(string, sizeof(string), "Acusado : %s", PlayerCrime[playerid][pBplayer]);
        SendClientMessage(playerid, COLOR_GRAD5,string);
        SendClientMessage(playerid, TEAM_BLUE_COLOR,"_______________________________________");
        return 1;
    }
Reply
#10

Vlw funfo

Eu queria por pra mostra o nivel de procurado tambem oq fasso ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)