Tete omar Posted June 8, 2012 Share 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 ? Link to comment
Vision Posted June 8, 2012 Share Posted June 8, 2012 I dont know but you create it with toggleControl Link to comment
X-SHADOW Posted June 8, 2012 Share 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 Link to comment
Guest Guest4401 Posted June 8, 2012 Share 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. Link to comment
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