Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Days Won

    27

Everything posted by iPrestege

  1. If you would like to request or suggest something for the forum you can post it in this section.
  2. الله يخلي phpBB ومجاني اعتذر للجميع عن الانقطاع الفتره هذي مسافر الى قطر الان في الخط .. لي دخول لاحق
  3. Yes that's true i do agree with bonsai and you also but not to edit the topic title i want it to be like a tag or plugin.
  4. Actually in this forum editing post with time you can check dan post here :
  5. iPrestege

    Nothing

    Well it's my own topic to write anything i want and test forum bugs and such things.
  6. iPrestege

    Nothing

    @</Mr.Tn6eL> Actually i don't care much about that = ) also in this section the posts isn't counted in here .
  7. Actually in the old forum phpBB anyone can edit the topic title so when the writer choose a title let's say [Help]guiSetVisible and in the old forum you can change the title anytime so if you found the solution after three or four days you can change the title and set it as [Resolved]guiSetVisible that's all.
  8. Thanks all but what i'm trying to do is not download the maps for the all players i want to download it for a specific player.
  9. اممم افهم من كلامكـ انة كودي غير صحيح؟ كودي بيشتغل تمام انا متحقق انة مع الداتا مهماً كانت قيمتها ماحددت يقدر يحدد هو او يقدر يرجع يشيلها وخلاص بيشتغل زي العسل
  10. Hi all, Well i'm working in a 'Multi GameMode' But i couldn't find a way to start a map for the player only here's what i'm trying to do If the player join the server and choose let's say zombie i want to start the zombie map only for the player and the players in the zombie game only and if someone choose let's say gang wars i want to start map for the player and the players in the gang wars game only So is there a way to do that? Start a map for a player? i know that 'startResource' to start maps resources but it will be started for all players I'm trying to start it for the players in the specific game he choose. Hope get some useful answers about that. Regards!
  11. addCommandHandler ( 'closechat', function ( ) for _,aPlayer in ipairs( getElementsByType( 'player' ) ) do if not isObjectInACLGroup( 'user.'..getAccountName ( getPlayerAccount ( aPlayer ) ),aclGetGroup ( 'Console' ) ) then setElementData ( aPlayer,'chatclose',true ); end end end ); addEventHandler ( 'onPlayerChat',root, function ( ) if getElementData ( source,'chatclose' ) then cancelEvent ( ); end end ); كذا اذا كان الاعب معه الداتا وجا يتكلم بالشات يتكنسل الحدث ومايتكلم بس تاكد انة ماعندك مود تاج او شيء ثاني اذا عندك لازم تعدله وتسوي تحقق الداتا وتكنسلة
  12. Try this in the server side this code : gateilhaFA1 = createObject ( 968, -3341.7001953125, 458.5, 10.5, 0, 270, 270 ) ZonailhaFA1 = createColCuboid ( -3356.7001953125, 459.89999389648, 9.6999998092651, 15.0, 5, 5.0 )--Zona em cubo de colisão. function GateIlha1Open ( player ) if player and getElementType ( player ) == 'player' then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("MapEditor")) then outputChatBox ( "Acesso permitido.", player, 0, 255, 0, true ) moveObject ( gateilhaFA1, 3000, -3341.7001953125, 458.5, 10.5, 0, 90, 0 ) setElementFrozen( player, true ) toggleAllControls( player, false ) setTimer ( function( thePlayer ) setElementFrozen( thePlayer, false ) toggleAllControls( thePlayer, true ) end, 3000, 1, player ) outputChatBox ( "Aguarde o portão se abrir.", player, 0, 255, 0, true ) else outputChatBox ( "Acesso negado.", player, 255, 0, 0, true ) end end end addEventHandler ( "onColShapeHit", ZonailhaFA1, GateIlha1Open ) function GateIlha1Close ( player ) if player and getElementType ( player ) == 'player' then moveObject ( gateilhaFA1, 1000, -3341.7001953125, 458.5, 10.5, 0, -90, 0 ) end end addEventHandler ( "onColShapeLeave", ZonailhaFA1, GateIlha1Close )
  13. Using 'getLocalPlayer' in the server side is wrong way to check that if the hit was a player use 'getElementType' instead .
  14. @ccw اضافة * جرب النسخة التالية : https://nightly.multitheftauto.com/?mtasa-1.5-rc-latest
  15. May you can explain that more clear?
  16. You have to fix everything by yourself you already got the errors so search for that and fix it.
  17. setElementData(source, "driverName123") هذي في كودكـ غير صحيحة ؟ الارقمنت المطلوب : bool setElementData ( element theElement, string key, var value [, bool synchronize = true ] ) راجع الويكي : setElementData
  18. addCommandHandler ( "jetpack", function ( thePlayer ) if doesPedHaveJetPack ( thePlayer ) then -- If the player have a jetpack already, remove it removePedJetPack ( thePlayer ) -- Remove the jetpack return -- And stop the function here end -- Otherwise, give him one if he has access local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions? if not doesPedHaveJetPack ( thePlayer ) then -- If the player doesn't have a jetpack give it. givePedJetPack ( thePlayer ) -- Give the jetpack end end end ) WiKi
  19. You mean that when you enter the vehicle and the engine was off and it start?
  20. What's the problem explain more and better please because i've tried mine and Cody Code's and work just fine the engine off and on .
  21. اخوي هذا مثال وحاول تفهمة طبقتة على كودك مايمديني اشرح لك اياهـ الان لكنة بسيط وسهل وأأمل منك تجربة لتفهمة : aX,aY = guiGetScreenSize ( ); aRx,aRy = ( aX / 800 ),( aY / 600 ); aButton = { { aText = 'iPrestege ( 1 )',aX = 120,aY = 84,aW = 158,aH = 53 }; { aText = 'iPrestege ( 2 )',aX = 120,aY = 147,aW = 158,aH = 53 }; { aText = 'iPrestege ( 3 )',aX = 120,aY = 210,aW = 158,aH = 53 }; { aText = 'iPrestege ( 4 )',aX = 120,aY = 273,aW = 158,aH = 53 }; { aText = 'iPrestege ( 5 )',aX = 120,aY = 337,aW = 158,aH = 53 }; }; aWnd = guiCreateWindow ( aRx*200,aRy*100, aRx*400,aRy*400,'aWindow',false ); for aI,aV in pairs ( aButton ) do aButton [aI] = guiCreateButton( aRx*aV.aX,aRy*aV.aY,aRx*aV.aW,aRy*aV.aH,aV.aText,false,aWnd ); end setTimer ( guiSetProperty,500,1,aButton[1],'NormalTextColour','FFFF0000' ); addEventHandler ( 'onClientGUIClick',root, function ( ) if source == aButton[1] then outputChatBox ( guiGetText ( source ) ); elseif source == aButton[2] then outputChatBox ( guiGetText ( source ) ); elseif source == aButton[3] then outputChatBox ( guiGetText ( source ) ); end end );
  22. بس تبريرك بانة الحجم خطأ غير صحيح الاحداثيات هي اللي خطأ وصاحب الموضوع يتأكد من احداثياتة او يتحركة حبة يمين ولا يسار وبتزبط معه
  23. Your code is to long also you have an extra 'a' in the addCommandHandler function in the function name part.
×
×
  • Create New...