15.03.2013, 23:34
First of all are all the stocks included in the script?
if they are have you edited the vars to your servers vars properly?
if everything is good please give me the line number your getting errors at
EDIT: also remember the luxadmin code uses a special sign for its admin/vip chat. What your trying to make is a command based text system so its going to be different.
Heres an example of my admin chat:
if they are have you edited the vars to your servers vars properly?
if everything is good please give me the line number your getting errors at
EDIT: also remember the luxadmin code uses a special sign for its admin/vip chat. What your trying to make is a command based text system so its going to be different.
Heres an example of my admin chat:
pawn Код:
CMD:a(playerid,params[])
{
if(pInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_ORANGE, "[*] You're not a level 1+ admin!");
new text[128];
if(sscanf(params,"s[128]",text)) return SendClientMessage(playerid,-1,"Usage: /a [text]");
format(gString,SOS,"[A.Chat] %s[%d]: %s",pInfo[playerid][Nick],playerid,text);
SendMessageToRAdmins(0xFF00FF, gString);
printf("[A.Chat] %s[%d]: %s",pInfo[playerid][Nick],playerid,text);
return 1;
}
stock SendMessageToRAdmins(color,const msg[])
{
foreach(Player, i) {
if(pInfo[i][pAdmin] >= 1 && pInfo[i][Logged] == 1)
{
SendClientMessage(i,color,msg);
}
}
}
//===========================================
//OnPlayerText
if(text[0] == '.' && pInfo[playerid][pAdmin] >= 1)
{
format(msg,sizeof(msg),"[A.Chat] %s[%d]: %s",pInfo[playerid][Nick],playerid,text[1]);
SendMessageToRAdmins(0xFF00FF, msg);
return 0;
}
if(text[0] == '.' && pInfo[playerid][Helpers] == 1)
{
format(msg,sizeof(msg),"[H.Chat] %s[%d]: %s",pInfo[playerid][Nick],playerid,text[1]);
SendMessageToHelpers(COLOR_MEDIUMAQUA, msg);
SendMessageToRAdmins(COLOR_MEDIUMAQUA, msg);
return 0;
}