CRoW,,# Posted February 20, 2013 Share Posted February 20, 2013 (edited) ابي الي يصير في قروب انا احطهه اذا مات م يرجع من البداية يرجع من المقر Edited February 20, 2013 by Guest Link to comment
HsSoN Posted February 20, 2013 Share Posted February 20, 2013 addEventHandler( 'onPlayerWasted', getRootElement(), function() if( getTeamName( getPlayerTeam( source ) ) == 'Team1' ) then spawnPlayer (source, x, y, z, Team1 ) local Team1 = math.random (29, 29) setPlayerSkin ( source, Team1) -------------------- elseif( getTeamName( getPlayerTeam( source ) ) == 'Team2' ) then spawnPlayer (source, x, y, z, Team2 ) local Team2 = math.random (285, 285) setPlayerSkin ( source, Team2) ----------- end end) Link to comment
CRoW,,# Posted February 20, 2013 Author Share Posted February 20, 2013 م ابي تيم ابي قروب Link to comment
jafar Posted February 20, 2013 Share Posted February 20, 2013 isObjectInACLGroup spawnPlayer "onPlayerWasted" Link to comment
CRoW,,# Posted February 20, 2013 Author Share Posted February 20, 2013 addEventHandler( 'onPlayerWasted', getRootElement(), function() local accName = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then spawnPlayer (source, x, y, z, Team1 ) local Team1 = math.random (29, 29) setPlayerSkin ( source, Team1) -------------------- local accName = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then spawnPlayer (source, x, y, z, Team2 ) local Team2 = math.random (285, 285) setPlayerSkin ( source, Team2) ----------- end end) يصير مثل كذا ؟ Link to comment
PaiN^ Posted February 20, 2013 Share Posted February 20, 2013 (edited) addEventHandler( "onPlayerWasted", root, function() local accName = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then spawnPlayer (source, x, y, z, Team1 ) local Team1 = 29 setPlayerSkin ( source, Team1) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then spawnPlayer (source, x, y, z, Team2 ) local Team2 = 285 setPlayerSkin ( source, Team2) end end ) الشخصيات من هنا *Edit : لوول ما إنتبهت نسخت ولصقت عالسريع Edited February 20, 2013 by Guest Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 addEventHandler( "onPlayerWasted", root, function() local accName = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then spawnPlayer (source, x, y, z, Team1 ) local Team1 = 29 setPlayerSkin ( source, Team1) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then spawnPlayer (source, x, y, z, Team2 ) local Team2 = 285 setPlayerSkin ( source, Team2) end end ) الشخصيات من هنا thePlayer Not Defined . Link to comment
TD[M]ER Posted February 20, 2013 Share Posted February 20, 2013 استبدل كود التيم بـ ذا local acc = getAccountName ( getPlayerAccount ( [source ) ) if isObjectInACLGroup ("user."..acc, aclGetGroup ( "اسم القروب" ) ) then Link to comment
CRoW,,# Posted February 20, 2013 Author Share Posted February 20, 2013 اعرف احط الاحداثيات والشخصية بس الكود صح ؟ Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 addEventHandler( "onPlayerWasted", root, function() local accName = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) end end ) Link to comment
CRoW,,# Posted February 20, 2013 Author Share Posted February 20, 2013 addEventHandler( "onPlayerWasted", root, function() local accName = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) end end ) مشكورر اشتغل Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 addEventHandler( "onPlayerWasted", root, function() local accName = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) end end ) مشكورر اشتغل You're Welcome . 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