ivor Posted July 19, 2016 Share Posted July 19, 2016 يمديني احول الكود هاد function hit ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPlayerOccupiedVehicle ( pla ) if vehicle or not vehicle then local skin = getPlayerSkin ( pla ) if skin == 287 then outputChatBox ( "Welcome, "..getClientName(pla).."!", pla, 0, 150, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) outputChatBox ( "* "..getClientName(pla).." has entered Restricted Area!", g_root, 255, 0, 0 ) end end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) الى كذا؟ local groupName = '[ARMY]' local teamName = 'Police' Link to comment
' A F . Posted July 19, 2016 Share Posted July 19, 2016 getElementData -- عشان تتحقق من قروب اللاعب getPlayerTeam + getTeamName + getTeamFromName -- عشان تحقق من تيم اللاعب Link to comment
ivor Posted July 19, 2016 Author Share Posted July 19, 2016 getElementData -- عشان تتحقق من قروب اللاعبgetPlayerTeam + getTeamName + getTeamFromName -- عشان تحقق من تيم اللاعب مثال ؟ :3 ماني فاضي وربي جالس اصمم وابرمج Link to comment
Jupi Posted July 19, 2016 Share Posted July 19, 2016 كتبت كل الكود ذا function hit ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPlayerOccupiedVehicle ( pla ) if vehicle or not vehicle then local skin = getPlayerSkin ( pla ) if skin == 287 then outputChatBox ( "Welcome, "..getClientName(pla).."!", pla, 0, 150, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) outputChatBox ( "* "..getClientName(pla).." has entered Restricted Area!", g_root, 255, 0, 0 ) end end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) ومانك عارف تضيف تحققين؟ :3 لا حول Link to comment
' A F . Posted July 19, 2016 Share Posted July 19, 2016 getElementData -- عشان تتحقق من قروب اللاعبgetPlayerTeam + getTeamName + getTeamFromName -- عشان تحقق من تيم اللاعب مثال ؟ :3 ماني فاضي وربي جالس اصمم وابرمج الي يقول اني انا فاضي لك Link to comment
SycroX Posted July 19, 2016 Share Posted July 19, 2016 هههههههههههههه مو فاضي مو فاضي احنا عملنا الي علينا كمل انتا بقا محدش هيديك جاهز Link to comment
Ahmed Ly Posted July 19, 2016 Share Posted July 19, 2016 https://wiki.multitheftauto.com/wiki/IsPlayerInTeam Link to comment
Me[Z]oO Posted July 19, 2016 Share Posted July 19, 2016 انت تبي الكود لقروب معين يعني ولا لا ؟ Link to comment
ivor Posted July 19, 2016 Author Share Posted July 19, 2016 انت تبي الكود لقروب معين يعني ولا لا ؟ يب ابيه لقروب معين قروب ارمي Link to comment
SycroX Posted July 20, 2016 Share Posted July 20, 2016 getElementData -- عشان تتحقق من قروب اللاعبgetPlayerTeam + getTeamName + getTeamFromName -- عشان تحقق من تيم اللاعب ارد فوق اهو يعني سويت كل ده و مش عارف تسوي التحقق السطر هاد Link to comment
shwaeki Posted July 20, 2016 Share Posted July 20, 2016 local groupName = '[ARMY]' local teamName = 'Police' function hit ( pla, dim ) if ( getElementType ( pla ) == "player" ) then local Team = getPlayerTeam(pla) if ( Team ) and ( getTeamName(Team) == teamName ) and ( getElementData( pla ,"Group") == groupName ) then outputChatBox ( "Welcome, "..getPlayerName(pla).." !", pla, 0, 150, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", root, pla ) outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) outputChatBox ( "* "..getPlayerName(pla).." has entered Restricted Area!", root, 255, 0, 0 ) end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) Link to comment
ivor Posted July 20, 2016 Author Share Posted July 20, 2016 local groupName = '[ARMY]' local teamName = 'Police' function hit ( pla, dim ) if ( getElementType ( pla ) == "player" ) then local Team = getPlayerTeam(pla) if ( Team ) and ( getTeamName(Team) == teamName ) and ( getElementData( pla ,"Group") == groupName ) then outputChatBox ( "Welcome, "..getPlayerName(pla).." !", pla, 0, 150, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", root, pla ) outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) outputChatBox ( "* "..getPlayerName(pla).." has entered Restricted Area!", root, 255, 0, 0 ) end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) كفو شنب يمديني اسوي هيك؟ local groupName='[ARMY],[sWAT]' ? Link to comment
' A F . Posted July 20, 2016 Share Posted July 20, 2016 ^ يب تقدر و استخدم معاها split 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