xTeacherx Posted February 17, 2012 Share Posted February 17, 2012 Where is the problem ؟ teamAdmin = createTeam ( "Admin", 255, 0, 0 ) function addtoteam(thePlayer) if ( hasObjectPermissionTo ( thePlayer, "function.kickPlayer", true ) ) then elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then setPlayerTeam ( player,teamadmins ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "SuperModerator" ) ) then setPlayerTeam ( player,teamadmins ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Moderator" ) ) then setPlayerTeam ( player,teamadmins ) setPedSkin ( thePlayer, 116 ) giveWeapon ( thePlayer, 22, 500, true ) giveWeapon ( thePlayer, 30, 500, true ) setPedArmor ( thePlayer, 100 ) setElementHealth (thePlayer, 100) setPlayerTeam ( thePlayer, teamAdmin ) else outputChatBox("YOU MOVED TO TEAM ADMIN", thePlayer, 255, 0, 0) end end addCommandHandler("admins", addtoteam) function addtoteamtimer() setTimer(addtoteam,3000,1,source) end addEventHandler("onPlayerLogin",getRootElement(),addtoteamtimer) Link to comment
JR10 Posted February 17, 2012 Share Posted February 17, 2012 teamAdmin = createTeam ( "Admin", 255, 0, 0 ) function addtoteam(thePlayer) if ( hasObjectPermissionTo ( thePlayer, "function.kickPlayer", true ) ) then setPlayerTeam ( thePlayer,teamAdmin ) setPedSkin ( thePlayer, 116 ) giveWeapon ( thePlayer, 22, 500, true ) giveWeapon ( thePlayer, 30, 500, true ) setPedArmor ( thePlayer, 100 ) setElementHealth (thePlayer, 100) outputChatBox("YOU MOVED TO TEAM ADMIN", thePlayer, 255, 0, 0) end end function addtoteamtimer() setTimer(addtoteam,3000,1,source) end addEventHandler("onPlayerLogin",getRootElement(),addtoteamtimer) https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/AR/ ... 8%AC%D9%87 1 Link to comment
Sparrow Posted February 17, 2012 Share Posted February 17, 2012 lolol, scripting TUTs on arabic, gr8. teamAdmin = createTeam ( "Admin", 255, 0, 0 ) function addtoteam(player) if ( isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "SuperModerator" ) ) or isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Moderator" ) )) then setPedSkin ( player, 116 ) giveWeapon ( player, 22, 500, true ) giveWeapon ( player, 30, 500, true ) setPedArmor ( player, 100 ) setElementHealth (player, 100) setPlayerTeam ( player, teamAdmin ) else outputChatBox("YOU MOVED TO TEAM ADMIN", player, 255, 0, 0) end end addCommandHandler("admins", addtoteam) function addtoteamtimer() setTimer(addtoteam,3000,1,source) end addEventHandler("onPlayerLogin",getRootElement(),addtoteamtimer) Link to comment
JR10 Posted February 17, 2012 Share Posted February 17, 2012 I removed the command, useless since it's already handled onPlayerLogin. 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