ice_brasil Posted April 28, 2013 Share Posted April 28, 2013 What do I add to when a player is frozen it can not shoot, move, change weapons want the player to be totally frozen! What do I add? elseif commandName == "congelar" then for i,v in ipairs(players) do setElementFrozen(v,true) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte congelou.",v,178, 34, 34, true ) end elseif commandName == "descongelar" then for i,v in ipairs(players) do setElementFrozen(v,false) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte descongelou.",v,178, 34, 34, true ) end Link to comment
Sparrow Posted April 28, 2013 Share Posted April 28, 2013 elseif commandName == "congelar" then for i,v in ipairs(players) do toggleAllControls(v, true) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte congelou.",v,178, 34, 34, true ) end elseif commandName == "descongelar" then for i,v in ipairs(players) do toggleAllControls(v, false) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte descongelou.",v,178, 34, 34, true ) end Link to comment
ice_brasil Posted April 28, 2013 Author Share Posted April 28, 2013 Thanks it worked, but as I release the chat? because with toggleallcommand (true) blocks the chat !! Link to comment
ice_brasil Posted April 28, 2013 Author Share Posted April 28, 2013 toggleControl ( source, "chatbox", true) ????????????? Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 Try it : elseif commandName == "congelar" then for i,v in ipairs(players) do toggleAllControls(v, true) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte congelou.",v,178, 34, 34, true ) end elseif commandName == "descongelar" then for i,v in ipairs(players) do toggleAllControls(v, false) toggleControl ( v, "chatbox", true ) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte descongelou.",v,178, 34, 34, true ) end Link to comment
Sasu Posted April 28, 2013 Share Posted April 28, 2013 Try it : elseif commandName == "congelar" then for i,v in ipairs(players) do toggleAllControls(v, true) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte congelou.",v,178, 34, 34, true ) end elseif commandName == "descongelar" then for i,v in ipairs(players) do toggleAllControls(v, false) toggleControl ( v, "chatbox", true ) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte descongelou.",v,178, 34, 34, true ) end I think that He want that They can speak if or not they are frozen. Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 Try it : elseif commandName == "congelar" then for i,v in ipairs(players) do toggleAllControls(v, true) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte congelou.",v,178, 34, 34, true ) end elseif commandName == "descongelar" then for i,v in ipairs(players) do toggleAllControls(v, false) toggleControl ( v, "chatbox", true ) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte descongelou.",v,178, 34, 34, true ) end I think that He want that They can speak if or not they are frozen. Ah i see that sorry Try this my mistake . elseif commandName == "congelar" then for i,v in ipairs(players) do toggleAllControls(v, true, true, true) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte congelou.",v,178, 34, 34, true ) end elseif commandName == "descongelar" then for i,v in ipairs(players) do toggleAllControls(v, false, false, true) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte descongelou.",v,178, 34, 34, true ) end 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