27.03.2014, 08:36
Theres 100000 tutorials on how to do it if you just search...
However heres my /do and /me
However heres my /do and /me
pawn Код:
CMD:do(playerid, params[])
{
new
result[ 128 ],
string[ 128 ]
;
if(sscanf(params, "s[128]", result)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: {FFFFFF}/do [action]");
format(string, sizeof(string), "* %s (( %s ))", result, RPName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
return 1;
}
CMD:me(playerid, params[])
{
new
result[ 128 ],
string[ 128 ]
;
if(sscanf(params, "s[128]", result)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: {FFFFFF}/do [action]");
format(string, sizeof(string), "* %s %s", RPName(playerid), result);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
return 1;
}