Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- static
- command[34],
- commandid,
- params[128],
- params_start;
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- for(params_start = 1; !((cmdtext[params_start]-47) & 0x80000000); ++params_start)
- cmdtext[params_start] |= 32;
- strcat((command[0] = '\0', command), cmdtext[1], params_start);
- strcat((params[0] = '\0', params), cmdtext[++params_start]);
- if(!getproperty(.name = command))
- setproperty(.name = command, .value = ++commandid);
- CallLocalFunction("OnPlayerExecuteCommand", "iis", playerid, getproperty(.name = command), params);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement