SA-MP Forums Archive
[Pedido] Dizer se player tem Golf Club - 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] Dizer se player tem Golf Club (/showthread.php?tid=600458)



Dizer se player tem Golf Club - luccagomes15 - 08.02.2016

Queria um script pra eu juntar com uma funзгo que eu to tentando fazer

Que use GetPlayerWeaponData e diga

Se player tem golf club
Ou
Se player nгo tem golf club

(weapon)

Код:
Golf Club
weapon id: 2
slot: 1
model: 333
Obrigado!


Re: Dizer se player tem Golf Club - RodrigoMSR - 11.02.2016

Код:
new weap, ammo;
GetPlayerWeaponData(playerid, 1, weap, ammo);
if(weap == 2 && ammo > 0) //Tem Golf Club
{

}
else //Nгo tem Golf Club
{

}