if(GetPlayerWeapon(killerid) == 0)
Код:
if(GetPlayerWeapon(killerid) == 0) Me ajuda a usar essa funзгo q vc me passou pra detectar se o player tem uma arma... Se o player tiver uma arma das id: 22 а 38 |
Use a funзгo GetPlayerWeaponData
|
if(Armado(playerid)) return SCM(playerid,-1,"nгo pode entrar armado.");
stock Armado(playerid)
{
if(PlayerInfo[playerid][pWP0] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP1] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP2] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP3] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP4] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP5] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP6] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP7] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP8] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP9] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP10] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP11] > 0) { return 1; }
else if(PlayerInfo[playerid][pWP12] > 0) { return 1; }
return 0;
}