Jump to content

team


[DMC]

Recommended Posts

look i made this but i dont know how to make it just for a certain team?

can anyone help me

restriction = {}
 
addCommandHandler("911",
function(thePlayer)
local playerName = getPlayerName(thePlayer)
if restriction[playerName] then
outputChatBox("Please don't spam 911", thePlayer, 255, 0, 0)
else
     restriction[playerName] = true
setTimer(restrictionEnd, 15000, 1, playerName)
outputChatBox(playerName .. ' needs Assistance, Police!', getRootElement(), 255, 0, 0)
end
end
)
 
function restrictionEnd(playerName)
 restriction[playerName] = nil
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...