Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * --- d!CMD ---
- * Por Danilo Galvão
- * [iPs]TeaM - Equipe GT
- * [url]www.ipsbr.net[/url] - [url]www.equipegt.com[/url]
- *
- */
- stock iscmd(string[])
- {
- new id, position = -1;
- while(string[++position] ^ 0x0 && string[position])
- id ^= (string[position] - string[1]);
- return id;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmdpos = -1, id, params[128];
- while(cmdtext[++cmdpos] > ' ')
- id ^= cmdtext[cmdpos] - cmdtext[1];
- format(params, sizeof(params), "%s", cmdtext[cmdpos+1]);
- #if defined Ips_OnPlayerCommandText
- return Ips_OnPlayerCommandText(playerid, id, params);
- #else
- return 0;
- #endif
- }
- #if defined _ALS_OnPlayerCommandText
- #undef OnPlayerCommandText
- #else
- #define _ALS_OnPlayerCommandText
- #endif
- #define OnPlayerCommandText Ips_OnPlayerCommandText
- #if defined Ips_OnPlayerCommandText
- forward Ips_OnPlayerCommandText(playerid, commandid, params[]);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement