26.07.2014, 21:16
I have a basic shout command for my RP server..
It works perfectly but how would I make /s execute the exact same command without duping the command but with CMD
?
Thanks in advance.
Код:
CMD:shout(playerid,params[])
{
new string[128], message[128];
if (sscanf(params, "s[128]", message)) return SendClientMessage(playerid,-1,"{AA3333}USAGE:{FFFFFF} /s(hout) (message)");
format (string,128,"%s shouts: %s",RemoveUnderScore(playerid),message);
ProxDetector(50,playerid,string,CHATFADE_1,CHATFADE_2,CHATFADE_3,CHATFADE_4,CHATFADE_5);
{
SetPlayerChatBubble(playerid,string,CHATFADE_1,50,6000);
}
return 1;
}
?Thanks in advance.


