11.03.2014, 04:43
i need some of ur help guys ^^
i' want to have a cool admin chat when using /a [text] or when @ [text]
But it shows up like
[a-chat]name : text
could someone help me with the /a or @ nd putting the playerid behind the name in adminchat?
as of now i have this code
i' want to have a cool admin chat when using /a [text] or when @ [text]
But it shows up like
[a-chat]name : text
could someone help me with the /a or @ nd putting the playerid behind the name in adminchat?
as of now i have this code
Код:
public OnPlayerText(playerid, text[])
{
if(ismuted[playerid] == 1)
{
SendClientMessage(playerid,COLOR_RED,"You have been muted. You cannot chat, unless, unmuted.");
return 0;
}
if(text[0]=='@')
{
if(PlayerInfo[playerid][pLevel]>0)
{
new st[128];
format(st,128,"{f41e98}[A-chat]{999999} %s: %s",GetName(playerid),text);
for(new i;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[i][pLevel]>0)
{
SendClientMessage(i, 0xFFFFFF, st);
}
}
}
return 0;
}
return 1;
}


