toptional Posted March 16, 2013 Posted March 16, 2013 When i freeze a player with setElementFrozen It freezes them but they can run around but not move,(hard to explain) Whats the function to completley freeze them they cannot move a bone?
MR.S3D Posted March 16, 2013 Posted March 16, 2013 I tried that it didn't work server side to freeze setPedFrozen( client, true ) toggleAllControls( client, false ) unfreeze setPedFrozen( client, false ) toggleAllControls( client, true)
Baseplate Posted March 16, 2013 Posted March 16, 2013 Show us your code, or as another solution you can unbind all the keys and then re-bind them when he's not frozen anymore.
toptional Posted March 16, 2013 Author Posted March 16, 2013 I tried that it didn't work server side to freeze setPedFrozen( client, true ) toggleAllControls( client, false ) unfreeze setPedFrozen( client, false ) toggleAllControls( client, true) Great it works I must have done something wrong when i tried before. Thanks!
toptional Posted March 16, 2013 Author Posted March 16, 2013 Problem: How do i enable talking in chat when allcontrols are disabled?
iPrestege Posted March 16, 2013 Posted March 16, 2013 toggleControl https://wiki.multitheftauto.com/wiki/Control_names
Baseplate Posted March 16, 2013 Posted March 16, 2013 Try to disable gta controls only using that function...check optional arguements on wiki
iPrestege Posted March 16, 2013 Posted March 16, 2013 just use toggleControl to disable that Control what u want not hard .
MR.S3D Posted March 16, 2013 Posted March 16, 2013 server side to freeze setPedFrozen( client, true ) toggleAllControls( client, false ) unfreeze setPedFrozen( client, false ) toggleAllControls( client, true) toggleControl ( client,"chatbox", true ) -- enable chat
toptional Posted March 16, 2013 Author Posted March 16, 2013 I added this toggleControl ( source, "chatbox", true ) But got this in the console: Unknown command or cvar: chatbox
iPrestege Posted March 16, 2013 Posted March 16, 2013 Wiki Say ;chatbox Opens the chatbox for input so? should work !
toptional Posted March 16, 2013 Author Posted March 16, 2013 Heres the full code Server Side function freeze() setPedFrozen( client, true ) toggleAllControls( client, false ) toggleControl ( source, "chatbox", true ) end addEvent ( "freeze", true ) addEventHandler ( "freeze", root, freeze ) This might help
MR.S3D Posted March 16, 2013 Posted March 16, 2013 use this in server side to freeze toggleAllControls ( client, false, true, false ) unfreeze toggleAllControls ( client, true, true, false )
toptional Posted March 16, 2013 Author Posted March 16, 2013 Still getting this Unknown command or cvar: chatbox
MR.S3D Posted March 16, 2013 Posted March 16, 2013 Still getting thisUnknown command or cvar: chatbox toggleAllControls ( client, state, true, false ) server side function freeze() toggleAllControls ( client, false, true, false ) end addEvent ( "freeze", true ) addEventHandler ( "freeze", root, freeze )
Baseplate Posted March 17, 2013 Posted March 17, 2013 He meant he doesn't understand, get some English lessons already.
toptional Posted March 17, 2013 Author Posted March 17, 2013 He meant he doesn't understand, get some English lessons already. Ye.
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