[ajuda] por favor
#1

so novo aki galera queria que vcs me emsinacem a arruma isso
eu to editando um gm como faz para quando eu digita /lider + id e gg/org
apeesoa i direta pra hq dela pq quando digito isso so muda a roupa e ela naum vai para hq
dela me ajudem aiw
nem sei se eu to colocando no topico certo
a e se vcs podem me ajuda a criar um inforg vlw
Reply
#2

posta o comando do /lider para que agente possa modificar para como vocк quer

poste entre [pawn*] [/pawn*] sem as estrelinhas *
Reply
#3

"/settime id"
Reply
#4

acho que vcs nuam etenderam tipo quando do lider a alguem ele naum vai para hq dele automaticamente
tipo se eu do lider da policia a mim msm eu so mudo de roupa e naum vo para hq da policia queria que quando desse lider a pessoa fosse a hq dele automaticamente
Reply
#5

Quote:
Originally Posted by denisassuncao
Посмотреть сообщение
acho que vcs nuam etenderam tipo quando do lider a alguem ele naum vai para hq dele automaticamente
tipo se eu do lider da policia a mim msm eu so mudo de roupa e naum vo para hq da policia queria que quando desse lider a pessoa fosse a hq dele automaticamente
cara entao posta o comando ai pra que agente possa ageita po й tao dificil de entender?
Reply
#6

if(strcmp(cmd, "/lider", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /lider [ id ] [Number(1-10)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 30 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Lideres de 0 a 30"); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if(PlayerInfo[para1][pMembro] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " O Player Ja tem uma Emprego/Lideranзa !");
return 1;
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLider] = level;
format(string, sizeof(string), " Voce foi escolhido a lider pelo admin %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
SendClientMessage(para1, COLOR_LIGHTBLUE,"Promovido Com suscesso !!");
if(level == 0) { PlayerInfo[para1][pChar] = 0; }
else if(level == 1) { PlayerInfo[para1][pChar] = 265; } //Policia Militar
else if(level == 2) { PlayerInfo[para1][pChar] = 285; } //B.O.P.E
else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //Exйrcito
else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //S.A.M.U
else if(level == 5) { PlayerInfo[para1][pChar] = 115; } //Varrios Los Aztecas
else if(level == 6) { PlayerInfo[para1][pChar] = 221; } //Grupo Armado Islвmico Lнbio (LIFG)
else if(level == 7) { PlayerInfo[para1][pChar] = 17; } //Prefeito
else if(level == { PlayerInfo[para1][pChar] = 294; } //Matador de Aluguel
else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //Rede Globo
else if(level == 10) { PlayerInfo[para1][pChar] = 46; } //Vazio
else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Instrutores =*
else if(level == 12) { PlayerInfo[para1][pChar] = 279; } //Bombeiros
else if(level == 13) { PlayerInfo[para1][pChar] = 100; } //Mongols MC
else if(level == 14) { PlayerInfo[para1][pChar] = 61; } //Transnacional
else if(level == 15) { PlayerInfo[para1][pChar] = 270; } //Groove
else if(level == 16) { PlayerInfo[para1][pChar] = 128; } //FARC
else if(level == 17) { PlayerInfo[para1][pChar] = 185; } //Policia Civil
else if(level == 1 { PlayerInfo[para1][pChar] = 102; } //Ballas
else if(level == 19) { PlayerInfo[para1][pChar] = 108; } //Vagos
else if(level == 20) { PlayerInfo[para1][pChar] = 117; } //Mбfia Yakuza
else if(level == 21) { PlayerInfo[para1][pChar] = 22; } //Comando Vermelho
else if(level == 22) { PlayerInfo[para1][pChar] = 125; } //Mбfia La Hermandad
else if(level == 23) { PlayerInfo[para1][pChar] = 143; } //G-MOB
else if(level == 24) { PlayerInfo[para1][pChar] = 292; } //Drifters
else if(level == 25) { PlayerInfo[para1][pChar] = 59; } //Policia Federal
else if(level == 26) { PlayerInfo[para1][pChar] = 61; } //TransTaxi
else if(level == 27) { PlayerInfo[para1][pChar] = 227; } //SBT
else if(level == 2 { PlayerInfo[para1][pChar] = 266; } //Policia Rodoviaria
else if(level == 29) { PlayerInfo[para1][pChar] = 59; } //C.T.P
else if(level == 30) { PlayerInfo[para1][pChar] = 17; } //Governo Federal
gTeam[para1] = 11;
PlayerInfo[para1][pTeam] = 11;
PlayerInfo[para1][pCargo] = 6;
SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce nгo esta autorizado a usar este comando!");
}
}
return 1;
Reply
#7

denisassuncao coloca isso em [*/pawn] [*pawn] sem os *
Reply
#8

Cara nгo precisava nem postar o cуdigo, o que vocк precisa de fazer й botar isso no comando "/lider"


SpawnPlayer(para1);

A funзгo no caso fica:

pawn Код:
if(strcmp(cmd, "/lider", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
        SendClientMessage(playerid, COLOR_GRAD2, "USE: /lider [ id ] [Number(1-10)]");
        return 1;
        }
        new para1;
        new level;
        para1 = ReturnUser(tmp);
        tmp = strtok(cmdtext, idx);
        level = strval(tmp);
        if(level > 30 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Lideres de 0 a 30"); return 1; }
        if (PlayerInfo[playerid][pAdmin] >= 1337)
        {
            if(IsPlayerConnected(para1))
            {
            if(para1 != INVALID_PLAYER_ID)
            {
            if(PlayerInfo[para1][pMembro] > 0)
            {
            SendClientMessage(playerid, COLOR_GREY, " O Player Ja tem uma Emprego/Lideranзa !");
            return 1;
            }
            GetPlayerName(para1, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(sendername));
            PlayerInfo[para1][pLider] = level;
            format(string, sizeof(string), " Voce foi escolhido a lider pelo admin %s", sendername);
            SendClientMessage(para1, COLOR_LIGHTBLUE, string);
            SendClientMessage(para1, COLOR_LIGHTBLUE,"Promovido Com suscesso !!");
            if(level == 0) { PlayerInfo[para1][pChar] = 0; }
            else if(level == 1) { PlayerInfo[para1][pChar] = 265; } //Policia Militar
            else if(level == 2) { PlayerInfo[para1][pChar] = 285; } //B.O.P.E
            else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //Exйrcito
            else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //S.A.M.U
            else if(level == 5) { PlayerInfo[para1][pChar] = 115; } //Varrios Los Aztecas
            else if(level == 6) { PlayerInfo[para1][pChar] = 221; } //Grupo Armado Islвmico Lнbio (LIFG)
            else if(level == 7) { PlayerInfo[para1][pChar] = 17; } //Prefeito
            else if(level == { PlayerInfo[para1][pChar] = 294; } //Matador de Aluguel
            else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //Rede Globo
            else if(level == 10) { PlayerInfo[para1][pChar] = 46; } //Vazio
            else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Instrutores =*
            else if(level == 12) { PlayerInfo[para1][pChar] = 279; } //Bombeiros
            else if(level == 13) { PlayerInfo[para1][pChar] = 100; } //Mongols MC
            else if(level == 14) { PlayerInfo[para1][pChar] = 61; } //Transnacional
            else if(level == 15) { PlayerInfo[para1][pChar] = 270; } //Groove
            else if(level == 16) { PlayerInfo[para1][pChar] = 128; } //FARC
            else if(level == 17) { PlayerInfo[para1][pChar] = 185; } //Policia Civil
            else if(level == 1 { PlayerInfo[para1][pChar] = 102; } //Ballas
            else if(level == 19) { PlayerInfo[para1][pChar] = 108; } //Vagos
            else if(level == 20) { PlayerInfo[para1][pChar] = 117; } //Mбfia Yakuza
            else if(level == 21) { PlayerInfo[para1][pChar] = 22; } //Comando Vermelho
            else if(level == 22) { PlayerInfo[para1][pChar] = 125; } //Mбfia La Hermandad
            else if(level == 23) { PlayerInfo[para1][pChar] = 143; } //G-MOB
            else if(level == 24) { PlayerInfo[para1][pChar] = 292; } //Drifters
            else if(level == 25) { PlayerInfo[para1][pChar] = 59; } //Policia Federal
            else if(level == 26) { PlayerInfo[para1][pChar] = 61; } //TransTaxi
            else if(level == 27) { PlayerInfo[para1][pChar] = 227; } //SBT
            else if(level == 2 { PlayerInfo[para1][pChar] = 266; } //Policia Rodoviaria
            else if(level == 29) { PlayerInfo[para1][pChar] = 59; } //C.T.P
            else if(level == 30) { PlayerInfo[para1][pChar] = 17; } //Governo Federal
            gTeam[para1] = 11;
            PlayerInfo[para1][pTeam] = 11;
            PlayerInfo[para1][pCargo] = 6;
            SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
            SpawnPlayer(para1);
            }
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GRAD1, " Voce nгo esta autorizado a usar este comando!");
    }
}
return 1;
Reply
#9

deu esse 4 erros agora


[/pawn]C:\Documents and Settings\denis\Meus documentos\Meus arquivos recebidos\VLC.pwn(27527) : warning 211: possibly unintended assignment
C:\Documents and Settings\denis\Meus documentos\Meus arquivos recebidos\VLC.pwn(27527) : error 008: must be a constant expression; assumed zero
C:\Documents and Settings\denis\Meus documentos\Meus arquivos recebidos\VLC.pwn(27527) : error 029: invalid expression, assumed zero
C:\Documents and Settings\denis\Meus documentos\Meus arquivos recebidos\VLC.pwn(27527 -- 2752 : warning 215: expression has no effect
C:\Documents and Settings\denis\Meus documentos\Meus arquivos recebidos\VLC.pwn(2752 : error 001: expected token: ";", but found "else"
C:\Documents and Settings\denis\Meus documentos\Meus arquivos recebidos\VLC.pwn(2752 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.[pawn]
Reply
#10

coloquei como estб aqui

pawn Код:
if(strcmp(cmd, "/lider", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /lider [ id ] [Number(1-10)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 30 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Lideres de 0 a 30"); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if(PlayerInfo[para1][pMembro] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " O Player Ja tem uma Emprego/Lideranзa !");
return 1;
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLider] = level;
format(string, sizeof(string), " Voce foi escolhido a lider pelo admin %s", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
SendClientMessage(para1, COLOR_LIGHTBLUE,"Promovido Com suscesso !!");
if(level == 0) { PlayerInfo[para1][pChar] = 0; }
else if(level == 1) { PlayerInfo[para1][pChar] = 265; SetPlayerSpawn(para1); } //Policia Militar
else if(level == 2) { PlayerInfo[para1][pChar] = 285; SetPlayerSpawn(para1); } //B.O.P.E
else if(level == 3) { PlayerInfo[para1][pChar] = 287; SetPlayerSpawn(para1); } //Exйrcito
else if(level == 4) { PlayerInfo[para1][pChar] = 228; SetPlayerSpawn(para1); } //S.A.M.U
else if(level == 5) { PlayerInfo[para1][pChar] = 115; SetPlayerSpawn(para1); } //Varrios Los Aztecas
else if(level == 6) { PlayerInfo[para1][pChar] = 221; SetPlayerSpawn(para1); } //Grupo Armado Islвmico Lнbio (LIFG)
else if(level == 7) { PlayerInfo[para1][pChar] = 17; SetPlayerSpawn(para1); } //Prefeito
else if(level == 8) { PlayerInfo[para1][pChar] = 294; SetPlayerSpawn(para1); } //Matador de Aluguel
else if(level == 9) { PlayerInfo[para1][pChar] = 227; SetPlayerSpawn(para1); } //Rede Globo
else if(level == 10) { PlayerInfo[para1][pChar] = 46; SetPlayerSpawn(para1); } //Vazio
else if(level == 11) { PlayerInfo[para1][pChar] = 171; SetPlayerSpawn(para1); } //Instrutores =*
else if(level == 12) { PlayerInfo[para1][pChar] = 279; SetPlayerSpawn(para1); } //Bombeiros
else if(level == 13) { PlayerInfo[para1][pChar] = 100; SetPlayerSpawn(para1); } //Mongols MC
else if(level == 14) { PlayerInfo[para1][pChar] = 61; SetPlayerSpawn(para1); } //Transnacional
else if(level == 15) { PlayerInfo[para1][pChar] = 270; SetPlayerSpawn(para1); } //Groove
else if(level == 16) { PlayerInfo[para1][pChar] = 128; SetPlayerSpawn(para1); } //FARC
else if(level == 17) { PlayerInfo[para1][pChar] = 185; SetPlayerSpawn(para1); } //Policia Civil
else if(level == 18) { PlayerInfo[para1][pChar] = 102; SetPlayerSpawn(para1); } //Ballas
else if(level == 19) { PlayerInfo[para1][pChar] = 108; SetPlayerSpawn(para1); } //Vagos
else if(level == 20) { PlayerInfo[para1][pChar] = 117; SetPlayerSpawn(para1); } //Mбfia Yakuza
else if(level == 21) { PlayerInfo[para1][pChar] = 22; SetPlayerSpawn(para1); } //Comando Vermelho
else if(level == 22) { PlayerInfo[para1][pChar] = 125; SetPlayerSpawn(para1); } //Mбfia La Hermandad
else if(level == 23) { PlayerInfo[para1][pChar] = 143; SetPlayerSpawn(para1); } //G-MOB
else if(level == 24) { PlayerInfo[para1][pChar] = 292; SetPlayerSpawn(para1); } //Drifters
else if(level == 25) { PlayerInfo[para1][pChar] = 59; SetPlayerSpawn(para1); }//Policia Federal
else if(level == 26) { PlayerInfo[para1][pChar] = 61; SetPlayerSpawn(para1); } //TransTaxi
else if(level == 27) { PlayerInfo[para1][pChar] = 227; SetPlayerSpawn(para1); } //SBT
else if(level == 28) { PlayerInfo[para1][pChar] = 266; SetPlayerSpawn(para1); } //Policia Rodoviaria
else if(level == 29) { PlayerInfo[para1][pChar] = 59; SetPlayerSpawn(para1); } //C.T.P
else if(level == 30) { PlayerInfo[para1][pChar] = 17; SetPlayerSpawn(para1); } //Governo Federal
gTeam[para1] = 11;
PlayerInfo[para1][pTeam] = 11;
PlayerInfo[para1][pCargo] = 6;
SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce nгo esta autorizado a usar este comando!");
}
}
return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)