Jump to content

i Want Help !


xTeacherx

Recommended Posts

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

  • Like 1
Link to comment

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

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