[Ajuda] Existe?
#1

Sei que existe a funзгo que seta a arma e muniзгo GivePlayerWeapon mais existe alguma que seta somente a muniзгo?
Reply
#2

Nunca tentei mas tenta usar https://sampwiki.blast.hk/wiki/GetPlayerWeapon.
Reply
#3

Quote:
Originally Posted by ipsLuan
Посмотреть сообщение
Код:
 if(GetPlayerWeapon(killerid) == 38) Ban(killerid); //Ban if they have a minigun
o GetPlayerWeapon eu entendi mas oq eu faria para setar a muniзгo ao invйs do Ban(killerid);
Reply
#4

basta dar a arma sem muniзгo.

PHP код:
GivePlayerWeapon(playerid380); 
Reply
#5

Quote:
Originally Posted by Whoo
Посмотреть сообщение
basta dar a arma sem muniзгo.

PHP код:
GivePlayerWeapon(playerid380); 
eu queria que seta a muniзгo entende, nгo a arma apenas a muniзгo
Reply
#6

https://sampwiki.blast.hk/wiki/SetPlayerAmmo
Reply
#7

Fiz este code de exemplo, irб adicionar 100 balas para arma que o player estiver na mгo.

PHP код:
CMD:pegarbala(playerid)
{
    
SetPlayerAmmo(playeridGetPlayerWeapon(playerid), 100);
    return 
true;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)