SteeLRO Posted November 23, 2014 Share Posted November 23, 2014 Hey all. I have a problem with my script. Why allow everyone to access the command? function abcd(source,command) local Team = getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) if (Team ~= "Police") then createObject(8082,1556,-1612,13.60000038147,0,0,0.25) addCommandHandler("police",abcd) Link to comment
manve1 Posted November 23, 2014 Share Posted November 23, 2014 function abcd(source,command) local Team = getTeamName(getPlayerTeam(source)) if (Team == "Police") then createObject(8082,1556,-1612,13.60000038147,0,0,0.25) addCommandHandler("police",abcd) Link to comment
SteeLRO Posted November 23, 2014 Author Share Posted November 23, 2014 function abcd(source,command) local Team = getTeamName(getPlayerTeam(source)) if (Team == "Police") then createObject(8082,1556,-1612,13.60000038147,0,0,0.25) addCommandHandler("police",abcd) Ty 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