Jump to content

تصحيح كود


Recommended Posts

Posted (edited)

السلام عليكم شباب الكود هذا ينقلك لبيت اذا كنت في قروب معين

المشكله هي العكس انه ما يدخلني اذا كنت بالقروب

واذا طلعت من القروب اقدر ادخل

--******************* 
-- Manster House .. 
--******************* 
local MansterMarker = createMarker(2196.66284, 1682.03992, 13.36719, "arrow", 2, 251, 96, 3, 153) 
addEventHandler("onMarkerHit", MansterMarker, 
function (player) 
if ( isPedInVehicle(player) ) then return end  
if ( getElementData(player, "Group") == "console" ) then 
         outputChatBox("#FF0000* This House Only For Console ", player, 255, 255, 0, true)  
else  
outputChatBox("#FF0000* Hello"..getPlayerName(player).."", player, 255, 255, 0, true) 
  setElementInterior(player, 1)  
    setElementPosition(player, 2233.89697, 1711.84998, 1011.6454) 
end 
end) 
  
local MansterMarker2 = createMarker(2233.90845, 1714.25159, 1013.3828, "arrow", 2, 251, 96, 3, 153) 
setElementInterior(Manster, 1) 
addEventHandler("onMarkerHit", MansterMarker2,  
function (MarkerHit) 
    if ( getElementData(MarkerHit, "Group") == "console" ) then 
         outputChatBox("#FF0000* This House Only For Console ", MarkerHit, 255, 255, 0, true)  
    else  
setElementInterior(MarkerHit, 0) 
    setElementPosition(MarkerHit, 2191.31836, 1677.30225, 11.97347) 
    outputChatBox("#FF0000*Good Bye"..getPlayerName(player).."", MarkerHit, 255, 255, 0, true) 
 end 
end) 

Edited by Guest

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...