MasKPro Posted May 9, 2016 Posted May 9, 2016 addEventHandler ("onResourceStart",root, Function crim1() createTeam(Criminals,200,0,0) end Function crim2() local crim=getTeamFromName("Criminals") if (crim) then setPlayerTeam (client,crim) outputChatBox ("You Are Now A Criminal",source) else return end end addCommandHandler (criminal,joincrim)
Walid Posted May 9, 2016 Posted May 9, 2016 its function not Function anyways try this: function criminalTeam () criminal = createTeam("Criminals", 200, 0, 0) end addEventHandler("onResourceStart", resourceRoot, criminalTeam) function joincrim(player) if player and isElement(player) then if (criminal) then setPlayerTeam (player,criminal) outputChatBox ("You Are Now A Criminal",player,0,255,0) end end end addCommandHandler (criminal,joincrim) Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
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