Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*____________________________________________________________________________*/
- #file "ECMD 1.0"
- /*____________________________________________________________________________*/
- #include a_samp
- #include sscanf
- /*____________________________________________________________________________*/
- #define ECMD[%0] forward ecmd_%0(playerid,params[]);public ecmd_%0(playerid,params[])
- /*____________________________________________________________________________*/
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[32],params[128];
- sscanf(cmdtext,"ss",cmd,params);
- strdel(cmd,0,1);
- new prikaz[32+10];
- format(prikaz,42,"ecmd_%s",cmd);
- if(CallLocalFunction(prikaz,"is",playerid,params))
- {
- return 1;
- }
- else
- {
- SendClientMessage(playerid,-1,"Příkaz neexistuje.");
- }
- return 0;
- }
- /*____________________________________________________________________________*/
- ECMD[help]
- {
- SendClientMessage(playerid,-1,params);
- return 1;
- }
- /*____________________________________________________________________________*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement