SA-MP Forums Archive
Help How Make /robstore as a KEY? 0.3e - 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: Help How Make /robstore as a KEY? 0.3e (/showthread.php?tid=355139)



Help How Make /robstore as a KEY? 0.3e - UserName31 - 29.06.2012

Hey i am making a cops and robbers script and i was wondering if yaa know how to make /robstore to press alt to /robstore or any funtion keys is for 0.3e i use dcmd(, 5,cmdtext); and i use CP_CPNAME

ok it need be like when player press alt or any function key's they can robstore


Re: Help How Make /robstore as a KEY? 0.3e - JaTochNietDan - 29.06.2012

See this callback to detect when a player presses a key:
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

You can see a list of keys that can be detected here:
https://sampwiki.blast.hk/wiki/GetPlayerKeys


Re: Help How Make /robstore as a KEY? 0.3e - UserName31 - 29.06.2012

Thank You So much Take Care i wont ask for more help no ill remember your name and ill promise ill give you rep+


Re: Help How Make /robstore as a KEY? 0.3e - Lordzy - 29.06.2012

That's good.
Even i was looking for something like this,
Thanks JaTochNietDan.