SA-MP Forums Archive
Can create a shortcut script? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Can create a shortcut script? (/showthread.php?tid=191219)



Can create a shortcut script? - 435076378 - 18.11.2010

Can create a shortcut script?
For example:
F1 = / help
F2 = / commands
F3 = / repair
Or
1 = / weapons
2 = / stats
3 = / tele
4 = / afk
5 = / admins


Re: Can create a shortcut script? - JaTochNietDan - 18.11.2010

Through SA-MP server-sided scripting you cannot add custom keys to execute functions. You need to use the default GTA: San Andreas keys, which may also differ for each clients keymap.

You would make use of OnPlayerKeyStateChange to do this.