16.03.2010, 14:15
Hey there,
Sorry for creating another thread about the same problem and script. The old one had 35 posts and sorry for being an ass to helpers, I've no idea why but forget about that. I am trying to get help again and being friendly this time.
First of all, here is the link (explanation and screenshots) http://www.urbanfighterstdm.smfnew.c...php?topic=22.0
Alright, let's start! I have a problem with my admin chat command (/a). The command /a is working, I can see my own text, but noone else can see my text. Other admins are trying to chat with /a but does not see his own chat (just no ClientMessage), but I can see it. Here is my script, I have no idea what is wrong with my script, I thought it was working perfectly. Here is my script.
Sorry for creating another thread about the same problem and script. The old one had 35 posts and sorry for being an ass to helpers, I've no idea why but forget about that. I am trying to get help again and being friendly this time.
First of all, here is the link (explanation and screenshots) http://www.urbanfighterstdm.smfnew.c...php?topic=22.0
Alright, let's start! I have a problem with my admin chat command (/a). The command /a is working, I can see my own text, but noone else can see my text. Other admins are trying to chat with /a but does not see his own chat (just no ClientMessage), but I can see it. Here is my script, I have no idea what is wrong with my script, I thought it was working perfectly. Here is my script.
pawn Код:
dcmd(a, 1, cmdtext);
pawn Код:
dcmd_a(playerid, params[])
{
new aText[128],aName[MAX_PLAYER_NAME],string[128];
if(sscanf(params,"s",aText)) return SendClientMessage(playerid,COLOR_LIGHTYELLOW,"[USAGE] ''/a [text]''.");
if(pInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid,COLOR_LIGHTYELLOW,"You are not an Administrator with the required level.");
GetPlayerName(playerid,aName,sizeof(aName));
format(string,sizeof(string),"Admin %s: %s",aName,aText);
for(new i=0;i<=MAX_PLAYERS;i++)
{
if(pInfo[i][pAdmin] > 0) return SendClientMessage(i,COLOR_LIGHTBLUE,string);
}
return 1;
}