11.04.2014, 14:42
Add this on top of ur script
add this somewhere
Код:
#include <a_samp> #include <zcmd> #include <sscanf> new SetSay[MAX_PLAYERS];
Код:
CMD:setsay(playerid, params[]) { new setsay[64]; if(sscanf(params,"sz",setsay)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /setsay <text>"); SetSay = setsay; return 1; } CMD:say(playerid, params[]) { new string[128],msg[256],pname[MAX_PLAYER_NAME]; GetPlayerName(playerid,pname,sizeof(pname)); if(sscanf(params,"sz",msg)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /me <text>"); format(string,sizeof(string),"*%s <%s> %s",pname,SetSay,msg); SendClientMessageToAll(COLOR_WHITE,string); return 1; }