Jump to content

[help]Freeze all players


ice_brasil

Recommended Posts

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
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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...