11.04.2014, 16:26
Quote:
Add this on top of ur script
Код:
#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; } |
But can u tell me that how can i do this.
i m using ladmin and i want these both commands to be usable with level 1 admin to level 5 how can i do this?
Rep+++++