Tete omar Posted June 8, 2012 Posted June 8, 2012 is there any script to block the player hits and sprint with out greenzone i don't want a green zone into my radar how ?
X-SHADOW Posted June 8, 2012 Posted June 8, 2012 (edited) --on hit the map ? addEvent('onClientResourceStart', resourceRoot, function() if (localPlayer == 'Here The variable') then toggleControl (localPlayer, 'sprint', false) end end) ---or every time ? addEventHandler('onClientResourceStart', resourceRoot, function() toggleControl (localPlayer, 'fire', false) end) Updated Again . Edited June 8, 2012 by Guest
Guest Guest4401 Posted June 8, 2012 Posted June 8, 2012 --on hit the map ? addEvent('onClientResourceStart', resourceRoot, function(player) if (player == 'Here The variable') then toggleControl (player, 'sprint', false) end end) ---or every time ? addEventHandler('onClientResourceStart', resourceRoot, function(player) toggleControl (player, 'fire', false) end) It's addEventHandler and not addEvent (Line 2) First parametre of onClientResourceStart is the resource, not a player. So toggleControl(player,'sprint',false) will give an error Edit: Now you changed it to source which isn't player either. It should be localPlayer.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now