Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*******************************************************************************
- Author: Zayan
- Contact: http://forum.sa-mp.com/member.php?u=194495
- Updates: [You can contact the author suggestions]
- * If an invalid command is entered, it will return a message 'Invalid Comma-
- nd'
- \******************************************************************************/
- #if defined _a_commands_included
- #endinput
- #endif
- #define _a_commands_included
- //You can change '@' to anything you want but dont forget to edit it in 'OnPlayerACommandText'.
- #define Acmd_Char '@'
- public OnPlayerText(playerid, text[])
- {
- if(text[0] == Acmd_Char)
- {
- CallLocalFunction("OnPlayerACommandText", "ds", playerid, text);
- return 0;
- }
- return 1;
- }
- forward OnPlayerACommandText(playerid, cmdtext[]);
- forward OnPlayerAText(playerid, text[]);
- #if defined _ALS_OnPlayerText
- #undef _ALS_OnPlayerText
- #else
- #define _ALS_OnPlayerText
- #endif
- #define OnPlayerText OnPlayerAText
Advertisement
Add Comment
Please, Sign In to add comment