Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Releases Libraries [Library] cusCMD - Custom Command

 
  • 0 Vote(s) - 0 Average
Library cusCMD - Custom Command
Tama
Offline

Burgershot Member
Posts: 42
Threads: 8
Joined: Sep 2019
Reputation: 1
Location: India
#1
2020-07-30, 09:50 AM (This post was last modified: 2020-07-30, 09:51 AM by Tama.)
Yeah i know it may be useless for you who reliable to speed like Pawn.CMD, but i managed to porting izcmd to this.
You can change prefix or sensitive char....

PHP Code:
#define CUSTOM_CMD "."
#define CMD_SENSITIVE false
#include <cusCMD> 

For command processing you'll changing CMD: to Process:

Here's example code:
PHP Code:
#include <a_samp>

#define CMD_PREFIX ">"
#define CMD_SENSTIVE false

#include <cusCMD>

// Output: >help
Process:help(playerid, params[]) {
    SendClientMessage(playerid, -1, "Yay!");
    return 0;
} 
NOTE: use only special char, otherwise it won't work ( maybe ¯\_(ツ)_/¯ )

 If you're interested, you can download and test it yourself.
https://pastebin.com/JqeHAGmQ
आपको अपने पापों पर पश्चाताप करना चाहिए, वे आपको नष्ट कर देंगे। आप कोई मौका नहीं खड़े हो रहे हैं। तुम उसके हाथ पर मर जाओगे। पछताना


« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode