SA-MP Forums Archive
How to make a bind - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to make a bind (/showthread.php?tid=538173)



How to make a bind - GunZ75 - 20.09.2014

Hi guys i would like to know how to make a bind with key Y that would do this:
return dcmd_robstore(playerid,params);

to resume, i would like it to return to /robstore command.


Re: How to make a bind - KingServerIRAN - 20.09.2014

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

Код:
    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) 
    {
        if(newkeys & 65536) //Value
        {
            OnPlayerCommandText(playerid, "/robstore"); //cmd
            
           return 1;
        }
    }



Re: How to make a bind - GunZ75 - 20.09.2014

Thank u +REP