Jump to content

Joker_Mta

Members
  • Posts

    222
  • Joined

  • Last visited

Posts posted by Joker_Mta

  1. Thank you CiBeR.

    @Feche1320: I've tried with your code (you just added the connection at the end of the script for not using the include function, right?) and it didn't work either. It keeps telling me that it could not connect...

    But I'm wondering..

    Why does the PHP SDK works when communicating from Server to the Website?

    I can perfectly use callRemote to a .php page, do some code there, and return something else to the server.

    Maybe the free host is blocking some ports

    +1

    ,,

    try this :

    you should to add username and passowrd of your account in server ,

      
    $ip = "ip"; 
    $port = port; 
    $user = "user"; 
    $pass = "pass"; 
    $resname = "resourceName"; 
    require_once("sdk/mta_sdk.php");  
    $mtaServer = new mta($ip,$port,$user,$pass); 
    $resource = $mtaServer->getResource ($resname); 
    $table = $resource->call("online"); 
      
    

    function online() 
        return getPlayerCount() 
    end 
    

    meta:

      
        function="online" type="server" http="true"/> 
    

    + add script to admin group

  2. I'm afraid you can't access that folder...

    Check out

    fileRead and xmlLoadFile 
    

    filePath: The filepath of the file in the following format: ":resourceName/path". 'resourceName' is the name of the resource the file is in, and 'path' is the path from the root directory of the resource to the file.

    --Answering your 2nd reply.:

    But that's what I am telling you, use getBoundKeys....

    I've done a script for it.. Binds Checker

    ah thanks , this what i mean , i will make it now :D

  3. i was meaning if can i get these :

      
        <binds> 
            <bind key="num_0" control="fire"></bind> 
            <bind key="lctrl" control="fire"></bind> 
            <bind key="mouse1" control="fire"></bind> 
            <bind key="e" control="next_weapon"></bind> 
            <bind key="num_enter" control="next_weapon"></bind> 
            <bind key="mouse_wheel_down" control="next_weapon"></bind> 
            <bind key="q" control="previous_weapon"></bind> 
            <bind key="num_dec" control="previous_weapon"></bind> 
            <bind key="mouse_wheel_up" control="previous_weapon"></bind> 
            <bind key="arrow_u" control="forwards"></bind> 
            <bind key="w" control="forwards"></bind> 
            <bind key="arrow_d" control="backwards"></bind> 
            <bind key="s" control="backwards"></bind> 
            <bind key="arrow_l" control="left"></bind> 
            <bind key="a" control="left"></bind> 
            <bind key="arrow_r" control="right"></bind> 
            <bind key="d" control="right"></bind> 
            <bind key="pgup" control="zoom_in"></bind> 
            <bind key="x" control="zoom_in"></bind> 
            <bind key="mouse_wheel_up" control="zoom_in"></bind> 
            <bind key="pgdn" control="zoom_out"></bind> 
            <bind key="z" control="zoom_out"></bind> 
            <bind key="mouse_wheel_down" control="zoom_out"></bind> 
            <bind key="enter" control="enter_exit"></bind> 
            <bind key="f" control="enter_exit"></bind> 
            <bind key="v" control="change_camera"></bind> 
            <bind key="home" control="change_camera"></bind> 
            <bind key="lshift" control="jump"></bind> 
            <bind key="rctrl" control="jump"></bind> 
            <bind key="space" control="sprint"></bind> 
            <bind key="num_1" control="look_behind"></bind> 
            <bind key="mouse3" control="look_behind"></bind> 
            <bind key="c" control="crouch"></bind> 
            <bind key="tab" control="action"></bind> 
            <bind key="lalt" control="walk"></bind> 
            <bind key="rctrl" control="vehicle_fire"></bind> 
            <bind key="lalt" control="vehicle_fire"></bind> 
            <bind key="mouse1" control="vehicle_fire"></bind> 
            <bind key="lctrl" control="vehicle_secondary_fire"></bind> 
            <bind key="num_0" control="vehicle_secondary_fire"></bind> 
            <bind key="a" control="vehicle_left"></bind> 
            <bind key="arrow_l" control="vehicle_left"></bind> 
            <bind key="d" control="vehicle_right"></bind> 
            <bind key="arrow_r" control="vehicle_right"></bind> 
            <bind key="arrow_u" control="steer_forward"></bind> 
            <bind key="arrow_d" control="steer_back"></bind> 
            <bind key="w" control="accelerate"></bind> 
            <bind key="s" control="brake_reverse"></bind> 
            <bind key="insert" control="radio_next"></bind> 
            <bind key="4" control="radio_next"></bind> 
            <bind key="mouse_wheel_up" control="radio_next"></bind> 
            <bind key="delete" control="radio_previous"></bind> 
            <bind key="r" control="radio_previous"></bind> 
            <bind key="mouse_wheel_down" control="radio_previous"></bind> 
            <bind key="F5" control="radio_user_track_skip"></bind> 
            <bind key="capslock" control="horn"></bind> 
            <bind key="h" control="horn"></bind> 
            <bind key="2" control="sub_mission"></bind> 
            <bind key="num_add" control="sub_mission"></bind> 
            <bind key="space" control="handbrake"></bind> 
            <bind key="rctrl" control="handbrake"></bind> 
            <bind key="q" control="vehicle_look_left"></bind> 
            <bind key="e" control="vehicle_look_right"></bind> 
            <bind key="mouse3" control="vehicle_look_behind"></bind> 
            <bind key="mouse2" control="vehicle_mouse_look"></bind> 
            <bind key="num_4" control="special_control_left"></bind> 
            <bind key="num_6" control="special_control_right"></bind> 
            <bind key="num_2" control="special_control_down"></bind> 
            <bind key="end" control="special_control_down"></bind> 
            <bind key="num_8" control="special_control_up"></bind> 
            <bind key="delete" control="special_control_up"></bind> 
            <bind key="delete" control="aim_weapon"></bind> 
            <bind key="capslock" control="aim_weapon"></bind> 
            <bind key="mouse2" control="aim_weapon"></bind> 
            <bind key="y" control="conversation_yes"></bind> 
            <bind key="n" control="conversation_no"></bind> 
            <bind key="g" control="group_control_forwards"></bind> 
            <bind key="h" control="group_control_back"></bind> 
            <bind key="g" state="down" command="enter_passenger" arguments=""></bind> 
            <bind key="F12" state="down" command="screenshot" arguments=""></bind> 
            <bind key="t" state="down" command="chatbox" arguments="chatboxsay"></bind> 
            <bind key="y" state="down" command="chatbox" arguments="teamsay 255 0 0"></bind> 
            <bind key="F11" state="down" command="radar" arguments="-1"></bind> 
            <bind key="num_add" state="down" command="radar_zoom_in" arguments=""></bind> 
            <bind key="num_sub" state="down" command="radar_zoom_out" arguments=""></bind> 
            <bind key="num_8" state="down" command="radar_move_north" arguments=""></bind> 
            <bind key="num_2" state="down" command="radar_move_south" arguments=""></bind> 
            <bind key="num_6" state="down" command="radar_move_east" arguments=""></bind> 
            <bind key="num_4" state="down" command="radar_move_west" arguments=""></bind> 
            <bind key="num_0" state="down" command="radar_attach" arguments=""></bind> 
            <bind key="num_div" state="down" command="radar_opacity_down" arguments=""></bind> 
            <bind key="num_mul" state="down" command="radar_opacity_up" arguments=""></bind> 
            <bind key="num_1" state="down" command="radar_help" arguments=""></bind> 
            <bind key="z" state="down" command="voiceptt" arguments="1"></bind> 
            <bind key="z" state="up" command="voiceptt" arguments="0"></bind> 
            <bind key="pgup" state="down" command="chatscrollup" arguments="1"></bind> 
            <bind key="pgup" state="up" command="chatscrollup" arguments="0"></bind> 
            <bind key="pgdn" state="down" command="chatscrolldown" arguments="-1"></bind> 
            <bind key="pgdn" state="up" command="chatscrolldown" arguments="0"></bind> 
            <bind key="pgup" state="down" command="debugscrollup" arguments="1"></bind> 
            <bind key="pgup" state="up" command="debugscrollup" arguments="0"></bind> 
            <bind key="pgdn" state="down" command="debugscrolldown" arguments="-1"></bind> 
            <bind key="pgdn" state="up" command="debugscrolldown" arguments="0"></bind> 
        </binds> 
    

  4. بسم الله الرحمن الرحيم

    السلام عليكم ورحمة الله وبركاته

    عندي سيرفر يوصل 30 ينزل 10

    انا ابي اعرف السبب بضبط

    المودات خفيفه وقليله مره وكلها متأكد منها مظمونه

    هل له دخل بنق الاعب؟

    ابي الحل بضبط اذا ضليت كذا سيرفري ابد ماراح يكون ناجح

    الأأستضافه ديلوكس هوست3

    وشكرا

  5. onClientGUIChanged أستخدم أفنت

    عشان تحفظ الكلام في متغير guiGetText و أستخدم

    = عشان تغير الكلام إلى guiSetText و أستخدم

    :D ما جربتها بس أضن تضبط

    ههههه تعقيد ويمكن تضبط

  6. ابي كود التسجيل

    ابي لما يدق على زر التسجيل يفتح له نافذه فيها حق التسجيل

    =================كذا

    وابي الرقم السري مايطلع زي كذا

    **************

    ما أظن انه بأمكانك تخليه بدل ******* تخليه ======= ماتوقع تقدر

  7. تقدر تستخدم

    spawnPlayer 
    

    وتقدر تستخدم

    setElementPosition (localPlayer,x,y,z) 
    

    بنسبه لسلاح

    giveWeapon(source,id,amount) 
    

    واذا تبيه يختار اجابري شيل من نافذتك

    guiSetVisible (GUIEditor_Window[1], false,) 
    

    GUIEditor_Window[1] -- اسم النافذه

  8.     addEventHandler("onPlayerWasted", root, 
        function(_,killer) 
             local name = getPlayerName(source) 
             local namek = getPlayerName(killer) 
             local money = math.random(200,1000) 
             givePlayerMoney(killer, money) 
             takePlayerMoney(source, 100) 
             outputChatBox("You killed "..name.." and get "..money, killer, 0,255,0) 
             outputChatBox(namek.." killed You and You lost 100$", source, 255,0,0) 
        end) 
    

    :shock: ودي أعرف المسافة الي بالكود من وين جات

    انا ابرمج عن طريق النوت باند ممكن تقولي كيف تكتب بطريقه صح لأنه انا اكتب مثلا

    function () 
    

    ولما اضغط انتر مثل حقك كيف اخليه ترتب ألمسافات ؟

    والأنت ايضآ كيف اخليها بالحد الي يكون فيه

    if

    او

    function

    ومعليش اذا كان الرد مو في محله

  9. محاولت ثانيه

      
    kk = { 
          'k1.png', 
          'k2.png', 
        
    } 
      
    function o ( killer ) 
        if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
            if ( isTimer ( timer ) ) then 
                killTimer ( timer ) 
            end 
        local randomkk = kk[randomID] 
    ki = guiCreateStaticImage(630,130,168,168,randomk3k,false) 
    end 
    end 
    end 
    addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 
    

  10. بسم الله الرحمن الرحيم السلام عليكم ورحمة الله وبركاته

    الكود الي يقتل شخص تطلع له صوره مو راضيه تطلع

    k1 = guiCreateStaticImage(630,130,168,168,"1.png",false) 
    guiSetVisible(k1,false) 
    k2 = guiCreateStaticImage(630,320,168,168,"2.png",false) 
    guiSetVisible(k2,false) 
      
    function o ( killer ) 
        if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
            if ( isTimer ( timer ) ) then 
                killTimer ( timer ) 
            end 
            local a = math.random(1,2) 
    if ( a == 1 ) then 
    guiSetVisible(k1,true) 
    setTimer(guiSetVisible,5000,1,k1,false) 
    elseif ( a == 2 ) then 
    guiSetVisible(k,true) 
    setTimer(guiSetVisible,5000,1,k2,false) 
    end 
    end 
    end 
    addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 
    

    وش فايدة

    math.random

    هنا ؟

    اذا المود مو من صنعك مقدر اساعدك ..

    انت قلت ااذا كان الكود لي راح تساعدني !

  11. كذا ؟

    messages = {  
    "1.png", 
    "2.png"  
    } 
      
    function o ( killer ) 
        if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
            if ( isTimer ( timer ) ) then 
                killTimer ( timer ) 
            end 
        local randomID = math.random ( 1, #messages ) 
        local randomMessage = messages[randomID] 
    end 
    end 
    addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 
    

  12. بسم الله الرحمن الرحيم السلام عليكم ورحمة الله وبركاته

    الكود الي يقتل شخص تطلع له صوره مو راضيه تطلع

    k1 = guiCreateStaticImage(630,130,168,168,"1.png",false) 
    guiSetVisible(k1,false) 
    k2 = guiCreateStaticImage(630,320,168,168,"2.png",false) 
    guiSetVisible(k2,false) 
      
    function o ( killer ) 
        if ( killer ) and ( killer ~= source ) and ( killer == getLocalPlayer() ) then 
            if ( isTimer ( timer ) ) then 
                killTimer ( timer ) 
            end 
            local a = math.random(1,2) 
    if ( a == 1 ) then 
    guiSetVisible(k1,true) 
    setTimer(guiSetVisible,5000,1,k1,false) 
    elseif ( a == 2 ) then 
    guiSetVisible(k,true) 
    setTimer(guiSetVisible,5000,1,k2,false) 
    end 
    end 
    end 
    addEventHandler ( "onClientPlayerWasted", getRootElement(), o ) 
    

×
×
  • Create New...