12.09.2010, 09:13
Hi all,how to disable weapons in interior? (Like cluckinbell,ammunation ecc..)
AllowInteriorWeapons(0);
What means with f times?
Yes I did, but it's does not work. why? |
public OnPlayerUpdate( playerid )
{
static
s_Interior,
s_Weapon
;
s_Interior = GetPlayerInterior( playerid );
s_Weapon = GetPlayerWeapon( playerid );
if ( s_Interior && s_Weapon && s_Weapon != WEAPON_BRASSKNUCKLE )
SetPlayerArmedWeapon( playerid, s_Weapon ? WEAPON_BRASSKNUCKLE : 0 );
return 1;
}
C:\Users\Lukas\Desktop\0.3 Server\gamemodes\SERVER-lvdm.pwn(1546) : error 017: undefined symbol "SetPlayerArmedWeapon" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
SetPlayerArmedWeapon( playerid, s_Weapon ? WEAPON_BRASSKNUCKLE : 0 );
AllowInteriorWeapons(1);
C:\Users\Lukas\Desktop\0.3 Server\gamemodes\SERVER-lvdm.pwn(1547) : error 017: undefined symbol "SetPlayerArmedWeapon" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.