Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Count and print all commands

$
0
0
This question might sound a little bit foolish, but is it possible to create a loop in OnGameInit() so that when the gamemode starts it will print how many commands are available and print all the commands?

For example, just assume the gamemode has around 4 commands? And they are /kill /goto /get /vehicle. In the end the console should print like;

Total commands: 4
Commands available: /kill /goto /get /vehicle

It is not a mandatory question to be answered, but I'm just curious to know. If someone knows please let me know.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>