11.08.2015, 07:12
Hi there,
I am wondering how would you check if a player has a weapon of any kind?
I tried doing this
This code above ^ didn't work.
Thanks for any help provided <3
I am wondering how would you check if a player has a weapon of any kind?
I tried doing this
pawn Код:
Check_Weapons(playerid)
{
new playerWeaponData[2][13];
for(new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, playerWeaponData[0][i], playerWeaponData[1][i]);
if(playerWeaponData[0][i] > 1)
{
SendClientMessage(playerid,COLOR_BLUE,"has weapons");
return 1;
}
}
return 0;
}
Thanks for any help provided <3