ivor Posted July 19, 2016 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'
' A F . Posted July 19, 2016 Posted July 19, 2016 getElementData -- عشان تتحقق من قروب اللاعب getPlayerTeam + getTeamName + getTeamFromName -- عشان تحقق من تيم اللاعب
ivor Posted July 19, 2016 Author Posted July 19, 2016 getElementData -- عشان تتحقق من قروب اللاعبgetPlayerTeam + getTeamName + getTeamFromName -- عشان تحقق من تيم اللاعب مثال ؟ :3 ماني فاضي وربي جالس اصمم وابرمج
Jupi Posted July 19, 2016 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 لا حول
' A F . Posted July 19, 2016 Posted July 19, 2016 getElementData -- عشان تتحقق من قروب اللاعبgetPlayerTeam + getTeamName + getTeamFromName -- عشان تحقق من تيم اللاعب مثال ؟ :3 ماني فاضي وربي جالس اصمم وابرمج الي يقول اني انا فاضي لك
SycroX Posted July 19, 2016 Posted July 19, 2016 هههههههههههههه مو فاضي مو فاضي احنا عملنا الي علينا كمل انتا بقا محدش هيديك جاهز
Ahmed Ly Posted July 19, 2016 Posted July 19, 2016 https://wiki.multitheftauto.com/wiki/IsPlayerInTeam
ivor Posted July 19, 2016 Author Posted July 19, 2016 انت تبي الكود لقروب معين يعني ولا لا ؟ يب ابيه لقروب معين قروب ارمي
SycroX Posted July 20, 2016 Posted July 20, 2016 getElementData -- عشان تتحقق من قروب اللاعبgetPlayerTeam + getTeamName + getTeamFromName -- عشان تحقق من تيم اللاعب ارد فوق اهو يعني سويت كل ده و مش عارف تسوي التحقق السطر هاد
shwaeki Posted July 20, 2016 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 )
ivor Posted July 20, 2016 Author 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]' ?
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