Check if player have weapon Golf Club
#1

How to check if player have Golf Club using function GetPlayerWeaponData

Код:
GetPlayerWeaponData
Код:
if(playerhavegolfclub) {
}
else if(playerdonthavegolfclub) {
}
Код:
Golf Club
weapon id: 2
slot: 1
model: 333
Reply
#2

PHP код:
new WeaponIDAmmo;
GetPlayerWeaponData(playerid1WeaponIDAmmo); 
"WeaponID" now stores the weaponid which is in slot one.

PHP код:
if(WeaponID == 2)//Golf Club 
Reply
#3

Quote:
Originally Posted by GangstaSunny
Посмотреть сообщение
PHP код:
new WeaponIDAmmo;
GetPlayerWeaponData(playerid1WeaponIDAmmo); 
"WeaponID" now stores the weaponid which is in slot one.

PHP код:
if(WeaponID == 2)//Golf Club 
ty! +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)