14.03.2010, 09:05
Quote:
|
Originally Posted by GaGlets®
EDITED
I have loooked into your code. i remade it with other things If not working then remove Код:
[128] 1st of all get: sscanf 2nd : At Код:
OnPlayerCommandText Код:
dcmd(a,1,cmdtext); Код:
dcmd_a(playerid,params[])
{
new aName[24],string[128], text[128];
if(!pInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW,"You are not an Administrator with the required level.");
return 1;
}
if(sscanf(params,"s",text))
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW,"[USAGE] ''/a [text]''.");
return 1;
}
GetPlayerName(playerid,aName,sizeof(aName));
format(string,sizeof(string),"[AdminChat]%s: %s",aName,text);
for(new i=0;i<=MAX_PLAYERS<i++;)
{
if(pInfo[i][pAdmin] >= 1)
{
SendClientMessage(i,COLOR_LIGHTBLUE,string);
}
}
return 1;
}
|

