15.06.2011, 21:44
Olб, boa noite б todos eu gostaria de saber como que faz um comando para comprar um kit de armas no new.pwn, eu tentei fazer porйm nгo deu certo.
OBS : SOUNOVATO
Eu queria alguma coisa mais ou menos assim, claro, se possнvel!
OBS : SOUNOVATO

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kitarma", cmdtext, true, 10) == 0)
{
if(GetPlayerScore < 10)
{
SendClientMessage(playerid, vermelho, "Vocк nгo tem dinheiro suficiente !");
}
else
{
GivePlayerScore(playerid, -10);
GivePlayerWeapon(playerid, 25, 200);
GivePlayerWeapon(playerid, 18, 25);
GivePlayerWeapon(playerid, 22, 100);
GivePlayerWeapon(playerid, 28, 300);
GivePlayerWeapon(playerid, 30, 120);
}
}
return 1;
}