Scripting/Squirrel/Functions/Players/IsWeaponSyncBlocked
From VC-MP Wiki
Example
If someone types '/c wepblock' Shooting blocks from weapon at player. If someone types '/c wepunblock' Shooting unblocks from weapon at player. Weapon blocks ( 0-32 )
function onPlayerCommand( player, cmd, text ) { if ( cmd == "wepblock" ) { player.IsWeaponSyncBlocked = true; } }
or
function onPlayerCommand( player, cmd, text ) { if ( cmd == "wepunblock" ) { player.IsWeaponSyncBlocked = false; } }
Notes
The call onPlayerCommand was used in in this example. More info about it on its page.
