toptional Posted March 16, 2013 Share 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? Link to comment
toptional Posted March 16, 2013 Author Share Posted March 16, 2013 I tried that it didn't work Link to comment
MR.S3D Posted March 16, 2013 Share 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) Link to comment
Baseplate Posted March 16, 2013 Share 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. Link to comment
toptional Posted March 16, 2013 Author Share 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! Link to comment
Baseplate Posted March 16, 2013 Share Posted March 16, 2013 Well, no problem..I guess Link to comment
toptional Posted March 16, 2013 Author Share Posted March 16, 2013 Problem: How do i enable talking in chat when allcontrols are disabled? Link to comment
iPrestege Posted March 16, 2013 Share Posted March 16, 2013 toggleControl https://wiki.multitheftauto.com/wiki/Control_names Link to comment
Baseplate Posted March 16, 2013 Share Posted March 16, 2013 Try to disable gta controls only using that function...check optional arguements on wiki Link to comment
iPrestege Posted March 16, 2013 Share Posted March 16, 2013 just use toggleControl to disable that Control what u want not hard . Link to comment
MR.S3D Posted March 16, 2013 Share 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 Link to comment
toptional Posted March 16, 2013 Author Share Posted March 16, 2013 I added this toggleControl ( source, "chatbox", true ) But got this in the console: Unknown command or cvar: chatbox Link to comment
iPrestege Posted March 16, 2013 Share Posted March 16, 2013 Wiki Say ;chatbox Opens the chatbox for input so? should work ! Link to comment
toptional Posted March 16, 2013 Author Share 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 Link to comment
MR.S3D Posted March 16, 2013 Share Posted March 16, 2013 use this in server side to freeze toggleAllControls ( client, false, true, false ) unfreeze toggleAllControls ( client, true, true, false ) Link to comment
toptional Posted March 16, 2013 Author Share Posted March 16, 2013 Still getting this Unknown command or cvar: chatbox Link to comment
MR.S3D Posted March 16, 2013 Share 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 ) Link to comment
iPrestege Posted March 17, 2013 Share Posted March 17, 2013 I don't get you? doesn't work? Link to comment
MR.S3D Posted March 17, 2013 Share Posted March 17, 2013 what problem with my code? its work with me Link to comment
Baseplate Posted March 17, 2013 Share Posted March 17, 2013 He meant he doesn't understand, get some English lessons already. Link to comment
toptional Posted March 17, 2013 Author Share Posted March 17, 2013 He meant he doesn't understand, get some English lessons already. Ye. 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