~>i'Mr.ZaId<~ Posted July 7, 2013 Posted July 7, 2013 السلام عليكم ورحمة الله وبركاته عندي خطـأ ياريت تصلحوهه local groupName = 'RPG' health = createMarker(1629.69921875,545.3994140625,10,"cylinder",1,0,0,0,0) EnterHouse = createMarker(1630,537.5,11.699999809265,"arrow",1,0,0,0,0) outHouse = createMarker(493.39999389648,-25.10000038147,1002,"arrorw",2,0,255,0,0) setElementInterior(outHouse,17) setElementDimension(outHouse,5664) addEventHandler("onMarkerHit",health, function (thePlayer) if getElementType(thePlayer) == 'player' then if getElementData(thePlayer,'Group') == groupName and getPlayerTeam(thePlayer) == 'No Team' then setPedArmor(thePlayer,100) setElementHealth(thePlayer,100) else outputChatBox('Only '..groupName..' !',thePlayer,255,2,2) end end end ) addEventHandler("onMarkerHit",EnterHouse, function (thePlayer) if getElementData(thePlayer,'Group') == groupName and getPlayerTeam(thePlayer) == 'No Team' and not isPedInVehicle(thePlayer) then setElementPosition(thePlayer,1267,-784,1092.3) setElementInterior(thePlayer,5) setElementDimension(thePlayer,5664) outputChatBox('Welcome '..getPlayerName(thePlayer)..' !',thePlayer,0,255,30) else outputChatBox('go '..getPlayerName(thePlayer)..' ! Only '..groupName..' !',thePlayer,0,255,30) end end ) addEventHandler("onMarkerHit",outHouse, function (thePlayer) if getElementData(thePlayer,'Group') == groupName and getPlayerTeam(thePlayer) == 'No Team' and not isPedInVehicle(thePlayer) then setElementPosition(thePlayer,1625,541,12.2) setElementInterior(thePlayer,0) setElementDimension(thePlayer,0) end end )
iPrestege Posted July 7, 2013 Posted July 7, 2013 local groupName = 'RPG' local health = createMarker( 1629.69921875,545.3994140625,10,"cylinder",1,0,0,0,0 ) local EnterHouse = createMarker( 1630,537.5,11.699999809265,"arrow",1,0,0,0,0 ) local outHouse = createMarker( 493.39999389648,-25.10000038147,1002,"arrorw",2,0,255,0,0 ) setElementInterior( outHouse,17 ) setElementDimension( outHouse,5664 ) addEventHandler("onMarkerHit",root, function ( hitElement ) if source == health or source == EnterHouse or source == outHouse then if getElementType ( hitElement ) == 'player' and getPlayerTeam ( hitElement ) then if getElementData ( hitElement,'Group' ) ~= groupName then return outputChatBox( 'For '..groupName..' only' ) end local Team = getTeamFromName ( 'No Team' ) if Team then if getPlayerTeam ( hitElement ) == Team then if source == health then setElementHealth ( hitElement,100 ) setPedArmor ( hitElement,100 ) elseif source == EnterHouse and not isPedInVehicle ( hitElement ) then setElementPosition( hitElement,1267,-784,1092.3 ) setElementInterior( hitElement,5 ) setElementDimension( hitElement,5664 ) outputChatBox( 'Welcome '..getPlayerName( hitElement )..' !',thePlayer,0,255,30 ) elseif source == outHouse and not isPedInVehicle ( hitElement ) then setElementPosition( hitElement,1625,541,12.2 ) setElementInterior( hitElement,0 ) setElementDimension( hitElement,0 ) end end end end end end )
iPrestege Posted July 7, 2013 Posted July 7, 2013 @ iFahad : createMarker راجع أرقمنتات وش المشكلة ؟ x,y,z,type,size,r,g,b,a
iPrestege Posted July 7, 2013 Posted July 7, 2013 اي توني انتبة انت مسوي شيء زايد بنوع الماركر : local outHouse = createMarker( 493.39999389648,-25.10000038147,1002,"arrorw",2,0,255,0,0 ) غيرهـ لـ : local outHouse = createMarker( 493.39999389648,-25.10000038147,1002,"arrow",2,0,255,0,0 ) فية r زايدهـ ..
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