SA-MP Forums Archive
[Ajuda] comando. - 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: [Ajuda] comando. (/showthread.php?tid=313739)



[Ajuda] comando. - Dreppins_Coodaaw - 27.01.2012

resolvido !


Re: [Ajuda] comando. - humildadeforever - 27.01.2012

Quote:
Originally Posted by Dreppins_Coodaaw
Посмотреть сообщение
pawn Код:
#include <a_samp>
#include <zcmd>

CMD: DarPrйmio(playerid,params[])
{
       GivePlayerMoney(playerid, COLOR_RED, 10000);
       GivePlayerWeapom(playerid, COLOR_RED, 25, 1000);
       GivePlayerWeapon(playerid, COLOR_RED, 12, 1000);
       GivePlayerWeapon(playerid, COLOR_RED, 36, 1000);
       GivePlayerWeapon(playerid, COLOR_RED, 16, 1000);
       SendPlayerMessage(playerid, COLOR_BLUE, "Vocк ganhou o evento, e foi recompensado por isso. " );
       return 1;
}
estб correto?
Oshe, por que nгo tenta compilar e ir no jogo testar ? '-'
pawn Код:
SendPlayerMessage(playerid,COLOR_BLUE,"Vocк ganhou o evento, e foi recompensado por isso.");
Troque por
pawn Код:
SendClientMessage(playerid,COLOR_BLUE,"Vocк ganhou o evento, e foi recompensado por isso.");
pawn Код:
GivePlayerWeapom(playerid, COLOR_RED, 25, 1000);
Vocк colocou M em Weapon, й N. como nos outros.
E, o que sгo essas cores no GivePlayerWeapon e GivePlayerMoney? Nгo pode por cor nisso ._.


Re: [Ajuda] comando. - paulor - 27.01.2012

Quote:
Originally Posted by Dreppins_Coodaaw
Посмотреть сообщение
pawn Код:
#include <a_samp>
#include <zcmd>

CMD: DarPrйmio(playerid,params[])
{
       GivePlayerMoney(playerid, COLOR_RED, 10000);
       GivePlayerWeapom(playerid, COLOR_RED, 25, 1000);
       GivePlayerWeapon(playerid, COLOR_RED, 12, 1000);
       GivePlayerWeapon(playerid, COLOR_RED, 36, 1000);
       GivePlayerWeapon(playerid, COLOR_RED, 16, 1000);
       SendPlayerMessage(playerid, COLOR_BLUE, "Vocк ganhou o evento, e foi recompensado por isso. " );
       return 1;
}
estб correto?
kkkkkk colocar cor nos bagulhos ? af antes de postar isso entre aki e de um pesquisada Wiki SAMP

E uma coisinha nгo aconselho colocar acento nos comandos!

GivePlayerMoney
SendClientMessage
GivePlayerWeapon


Re: [Ajuda] comando. - Enderman - 27.01.2012

pawn Код:
CMD:darpremio(playerid,params[])//Nгo utilize letras maisculas na hora de criar o comando, se nгo nгo irб funcionar.
{
       GivePlayerMoney(playerid, 10000);//GivePlayerMoney sу utiliza 2 parametros.
       GivePlayerWeapon(playerid, 25, 1000);//GivePlayerWeapon sу utiliza 2 parametros
       GivePlayerWeapon(playerid,  12, 1000);
       GivePlayerWeapon(playerid,  36, 1000);
       GivePlayerWeapon(playerid,  16, 1000);
       SendClientMessage(playerid, COLOR_BLUE, "Vocк ganhou o evento, e foi recompensado por isso. " );
       return 1;
}