17.03.2011, 20:46
Well it depends on what kind of variables you are using. In Lethal Admin script, this is the code for the admin chat:
I doubt it will work, but give it a try. Place it under OnPlayerText.
If it doesn't work (99% it probably wont ), I recommend downloading an admin script.
pawn Код:
if(text[0] == '#' && if ( GetPVarInt( playerid, "Level" ) > 1 ) { // I REPLACED WITH YOUR VARIABLE
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]); MessageToAdmins(green,string);
return 0;
}
If it doesn't work (99% it probably wont ), I recommend downloading an admin script.