CMD:achat(playerid, params[])
{
if(pInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, -1, "{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command.");
{
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(string, sizeof string, "{FF0000}|AdminChat| {FFFFFF}:%s: {FFFF33}%s", name, string);
SendClientMessage(-1, string);
}
return 1;
}
CMD:achat(playerid, params[])
{
if(pInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, -1, "{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command.");
{
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(string, sizeof string, "{FF0000}|AdminChat| {FFFFFF}:%s: {FFFF33}%s", name, string);
SendClientMessage(playerid,-1, string);
}
return 1;
}
CMD:achat(playerid, params[])
{
if(pInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, -1, "{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command.");
{
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(string, sizeof string, "{FF0000}|AdminChat| {FFFFFF}:%s: {FFFF33}%s", name, string);
SendMessageToAdmins(-1,string);
}
return 1;
}
//at the end of the script
stock SendMessageToAdmins(color,string[])
{
for(new i;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i) || IsPlayerNPC(i) || pInfo[i][AdminLevel] < 1)continue;
SendClientMessage(i,color,string);
}
return 1;
}
CMD:achat(playerid, params[])
{
if(pInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, -1, "{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command.");
{
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(string, sizeof string, "{FF0000}|AdminChat| {FFFFFF}:%s: {FFFF33}%s", name, string);
SendMessageToAdmins(-1,string);
}
return 1;
}
//at the end of the script
stock SendMessageToAdmins(color,string[])
{
for(new i;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i) || IsPlayerNPC(i) || pInfo[i][AdminLevel] < 1)continue;
SendClientMessage(i,color,string);
}
return 1;
}
CMD:achat(playerid, params[])
{
if(pInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, -1, "{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command.");
new string[128], name[MAX_PLAYER_NAME],Text[100];
GetPlayerName(playerid, name, sizeof (name));
format(string, sizeof string, "{FF0000}|AdminChat| {FFFFFF}:%s: {FFFF33}%s", name, Text);
for(new i,i<MAX_PLAYERS,i++)
{
if(pInfo[i][AdminLevel] >= 1 || IsPlayerAdmin(i)) return SendClientMessage(i,-1,string);
}
}
return 1;
}
If you don't know everything about PAWN then you shouldn't talk bullshit.
My code is perfectly alright. - Mencent |
you helped me also in other situations so ima give you rep you deserve it
|
If you don't know everything about PAWN then you shouldn't talk bullshit.
My code is perfectly alright. - Mencent |
SendClientMessage(-1, string);
CMD:achat(playerid, params[]) { if(pInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, -1, "{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command."); { new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof (name)); format(string, sizeof string, "{FF0000}|AdminChat| {FFFFFF}:%s: {FFFF33}%s", name, string); SendClientMessage(playerid,-1, string); } return 1; }