29.04.2014, 11:59
don't use /ad with dialog it is annoying just use /ad [text]
if you want it like i stated this is the way:
if you want it like i stated this is the way:
pawn Code:
CMD:ad(playerid,params[])
{
new text,string[160],gname[MAX_PLAYER_NAME];
GetPlayerName(playerid,gname,sizeof(gname));
if(sscanf(params,"s[50]"text)) return SendClientMessage(playerid,-1, "(ERROR): /ad [ text ] " );
format(string,sizeof(string),"ADVERTISEMENT[ %s ]: %s",gname,text);
SendClientMessageToAll(COLORHERE,string);
return 1;
}