taha201100 Posted September 13, 2015 Posted September 13, 2015 السلام عليكم سفاح سوالي كود اعطاء دم لجميع الاعبين وتيم معين لكن ابي اعرف الحين لو ابي اخليه درع استبدل كلمات ولا كود جديد؟ Groups = {"Console","Admin"} addCommandHandler ("setHealth", function (thePlayer,cmd,Health,Team) local acc = getPlayerAccount(thePlayer) for _,Group in ipairs (Groups) do if ( isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup(Group))) then -- Console = هنا آسم الرتبة الي تبيها أنا حطيتها كونسل if ( Health ) then if ( Team ) then for k,v in ipairs ( getPlayersInTeam ( getTeamFromName ( Team )) ) do setElementHealth (v,Health) exports["TopBarChat"]:sendClientMessage ("تم أعطائك دم", root, 255, 100, 100, true, 5 ) end else for k,player in ipairs ( getElementsByType ("player")) do setElementHealth (player,Health) exports["TopBarChat"]:sendClientMessage ("تم أعطائك دم", root, 255, 100, 100, true, 15 ) break end end end end end end )
TAPL Posted September 13, 2015 Posted September 13, 2015 كمل بنفس الموضوع لا تفتح جديد https://forum.multitheftauto.com/viewtopic.php?f=160&t=92570&p=833232
Recommended Posts