Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. لا السيارهـ نفسها -_-"
  2. حط الالمنت السيارة
  3. local police1 = createPickup (2251.99, 2489.39, 10.99, 1, 25, 10000, 60) local police2 = createPickup (2295.36, 2461.00, 1082, 0, 100, 10000, 60) function MarkerHit( thePlayer ) if ( source == police1 or source == police2 ) then local model = getElementModel( thePlayer ) if model~= 29 or model~= 181 then end cancelEvent() end end end addEventHandler ( "onPickupHit", root, MarkerHit )
  4. سوي المود سيرفر كلنت بيكون للاعب نفسة بس
  5. Wasn't a mistake by samer. local model = getElementModel( thePlayer ) if model~= 29 or model~= 181 then end Did you read this post?
  6. This will check 29 model only .
  7. تسوي ماركر او كول اللي تبية
  8. local radararea = createRadarArea ( x,y,500,500,255,255,0,175 ); غير فـ 500,500 كذا كويس بس غير وحط الاحداثيين اكس و ووآي #
  9. -- مثال بسيط من الويكي. local radarareas = getElementsByType ( "radararea" ) --- يجيب اي رادار بالروم تقدر تستبدلة بـ راداركـ for k, theArea in ipairs(radarareas) do -- نستخدم الجدول بـ حيث يجيب آي رآدآر # local sizeX, sizeY = getRadarAreaSize ( theArea ) -- يجيب الحجم if ( sizeX < 100 and sizeY < 100 ) then -- يتأكد اذا كان الحجم اصغر من الحجم الاخر outputChatBox ( "A small radar area was found!" ) -- مخرج شات end end
  10. -- Wiki Easy Ex. local radarareas = getElementsByType ( "radararea" ) -- get a table of radararea elements for k, theArea in ipairs(radarareas) do -- use a generic for loop to step through each of the elements local sizeX, sizeY = getRadarAreaSize ( theArea ) -- get the size of the radar area if ( sizeX < 100 and sizeY < 100 ) then -- check if it's smaller than 100 by 100 outputChatBox ( "A small radar area was found!" ) end end
  11. Sorry forget something try this now : function createclan() local clan = getElementData ( source, "clan" ) if not isGuestAccount ( getPlayerAccount(source) ) then setAccountData ( getPlayerAccount(source), "Clan", getElementData ( source, "clan" ) ) end local root = xmlLoadFile ("clans.xml") local clanroot = xmlFindChild (root,"clans",0) if (clanroot) then xmlNodeSetAttribute (clanroot,"clan", clan) else clanroot = xmlCreateChild(root, "clans") xmlNodeSetAttribute (clanroot,"clan", clan) end xmlSaveFile( clanroot ) xmlUnloadFile ( clanroot ) end addEvent ( "createclan", true ) addEventHandler ( "createclan", root, createclan )
  12. function resetPlayerScore (thePlayer) local pname = getPlayerAccount( thePlayer ) setElementData(thePlayer,"kills",0) setElementData(thePlayer,"deaths",0) setAccountData( pname, "kills", 0) setAccountData( pname, "deaths", 0) outputChatBox(" "..getPlayerName(thePlayer).." : YOU SCORE KILL/DEATHS IS 0", getRootElement(), 255, 0, 0, true ) end addCommandHandler("resetscore", resetPlayerScore)
  13. function createclan() local clan = getElementData ( source, "clan" ) setAccountData ( getPlayerAccount(source), "Clan", getElementData ( source, "clan" ) ) local root = xmlLoadFile ("clans.xml") local clanroot = xmlFindChild (root,"clans",0) if (clanroot) then xmlNodeSetAttribute (clanroot,"clan", clan) end xmlSaveFile( clanroot ) xmlUnloadFile ( clanroot ) end addEvent ( "createclan", true ) addEventHandler ( "createclan", root, createclan )
  14. جدول حساب _ ارقمنت بالحدث nil نفي الشيء
  15. S3D كودهـ كان ناسي ( بس ! ذذ
×
×
  • Create New...