SA-MP Forums Archive
[Pedido] 2 Pedidos. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] 2 Pedidos. (/showthread.php?tid=271723)



[Pedido] 2 Pedidos. - 1The1AleX1 - 25.07.2011

Eae Galera!

Sou Novato, Mas Consegui Fazer Umas Coisitas, Um Amigo Meu Me Deu Um FS Com Orgґs, Mas Falta Comando /DarLider. Alguйm Ai Pode Fazer Um Pra Mim? Minhas Orgґs: http://pastebin.com/nNFJiHZt
__________________________________________________ __________________________________________
Eu Tenho Isto: new Org[MAX_PLAYERS]; Mas Como Faзo Parecido Com Isto: if(Cargo[playerid] < 6) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO] Vocк Nгo Й Lнder!"); Fique Para If ORG e nгo Cargo.
__________________________________________________ __________________________________________

Vlw Pela Ajuda.


Re: [Pedido] 2 Pedidos. - deregudegu - 26.07.2011

1є Existe varios GMs e sisitemas aqui no fуrum SAMP, entгo baixe estude e faзa o seu.
2є Pelo o que eu vi vocк nгo sabe pawn, entгo vai estudar, mas eu faзo isso para vocк:

pawn Код:
if(Org[playerid] == 1) return SendClientMessage(playerid, 0xFF0000FF, "Vocк й da ORG 1!");
if(Org[playerid] == 2) return SendClientMessage(playerid, 0xFF0000FF, "Vocк й da ORG 2!");
Espero ter ajudado


Re: [Pedido] 2 Pedidos. - 1The1AleX1 - 26.07.2011

Vlw!

PS: Eu Jб Procurei Em Outros GMґs, Mas Nгo Encontro.

________________________________________________

Outra Coisa, Aki:
PHP код:
 if(Org[playerid] == 1//Se a Org do player for 1, irб executar as funзхes abaixo
return SendClientMessage(playerid0xFFF000AA"Vocк й da Org 1"); //Envia a mensagem ao jogador da Org 1 
Posso Por #Define PM 1 ?? Ou Existe Outra Forma De Dar Nomes Бs Orgґs?


Re: [Pedido] 2 Pedidos. - 1The1AleX1 - 26.07.2011

Agora Falta Comando /DarLider. Minhas Orgґs:http://pastebin.com/nNFJiHZt


Re: [Pedido] 2 Pedidos. - Shadoww5 - 26.07.2011

Se eu nгo tiver enganado, este GM foi editado por mim a pedido do Tymer. '-'


Re: [Pedido] 2 Pedidos. - 1The1AleX1 - 26.07.2011

O.o! Mas Podem Arrangar Ou Nгo?


Re: [Pedido] 2 Pedidos. - 1The1AleX1 - 26.07.2011

Por Favor! Ajuda.....


Re: [Pedido] 2 Pedidos. - Hardware - 26.07.2011

Olб, eu nгo sei se estб certo, mas tente.
pawn Код:
CMD:darlider(playerid, params[])
{
    new id;
    if(sscanf(params,"i",id)) SendClientMessage(playerid, -1 , "Use: /darlider [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "(ERRO) Jogador nгo conectado!");
    else
    {
        Cargo[id] = 6;
        SendClientMessage(id, -1, "(INFO) Parabйns, vocк й lнder agora!");
    }
    return true;
}
Pode ser que esteja errada,pois fiz correndo, nem olhei direto. Mas to tentando,rs.



Re: [Pedido] 2 Pedidos. - 1The1AleX1 - 27.07.2011

Quote:
Originally Posted by Hardware
Посмотреть сообщение
Olб, eu nгo sei se estб certo, mas tente.
pawn Код:
CMD:darlider(playerid, params[])
{
    new id;
    if(sscanf(params,"i",id)) SendClientMessage(playerid, -1 , "Use: /darlider [id]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "(ERRO) Jogador nгo conectado!");
    else
    {
        Cargo[id] = 6;
        SendClientMessage(id, -1, "(INFO) Parabйns, vocк й lнder agora!");
    }
    return true;
}
Pode ser que esteja errada,pois fiz correndo, nem olhei direto. Mas to tentando,rs.
VLW MANOLO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

1 Coisa... Pode Por Isso Por Comando No ONPLAYERCOMMANDTEXT POR FAVORRRRRR?


Re: [Pedido] 2 Pedidos. - Shadoww5 - 27.07.2011

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/darlider"true) == 0)
    {
        
tmp strtok(cmdtextidx);
        new 
id strval(tmp);
        if(!
strlen(tmp)) return SendClientMessage(playerid, -"Use: /darlider [id]");
        if(!
IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1"(ERRO) ID invбlido !");
        
Cargo[id] = 6;
        
SendClientMessage(id, -1"(INFO) Parabйns, vocк й lнder agora!");
        return 
true;
    }
    return 
false;

O unico problema que vai dar й no infoorg, pois neste codigo nгo irб salvar nada no infoorg.