22.09.2010, 08:02
pawn Код:
CMD:a(playerid,params[])
{
AdminChats(playerid,params[]);// 1
return 1;
}
CMD:admin(playerid,params[])
{
AdminChats(playerid,params[]); // 2
return 1;
}
AdminChats(playerid,params[])
{
if (Pinfo[playerid][Admin] >= 1)
{
new string[256],text[256],idx;
GetStringText(params, idx, text);
if(!strlen(text))
{
SCM(playerid, COLOR_GRAD1, "TIP: /a [text]");
return 1;
}
format(string, sizeof(string), " Admin chat %s: %s", PlayerName[playerid],text);
SendMessageToAdmin(COLOR_LIGHTGREEN,string,1);
}
return 1;
}
I just can't understand whats wrong, or I need to make it in different way?