CMD:mutelist(playerid, params[])
{
new count = 0;
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
SendClientMessage(playerid, Red, "Listing Currently Muted Players:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && ainfo[i][Muted] > 0)
{
new str[56];
GetPVarString(playerid, "TREASON", str, sizeof(str));
SPD(playerid, MUTED, DIALOG_STYLE_MSGBOX, "Muted Player", str, "Done", "Cancel");
count++;
}
}
if(count == 0)
{
SendClientMessage(playerid, Red, "SERVER : There are no muted players at the moment!");
}
return 1;
}
info[playerid][Level] = 1; then after a GMX or reloadfs it turns into info[playerid][Level] = 0; |
CMD:mutelist(playerid, params[])
{
new str[128];
new count = 0;
new name[MAX_PLAYER_NAME];
SendClientMessage(playerid, Red, "Listing Currently Muted Players:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && ainfo[i][Muted] > 0)
{
GetPlayerName(i, name, sizeof(name));
format(str,sizeof(str),"%s~n~%s",name,str);
count++;
}
}
if(count != 0)
{
SPD(playerid, MUTED, DIALOG_STYLE_MSGBOX, "Muted Player", str, "Done", "Cancel");
}
if(count == 0)
{
SendClientMessage(playerid, Red, "SERVER : There are no muted players at the moment!");
}
return 1;
}
Originally Posted by Joe Torran C
Dont bots have the same ping as you do?
Its coming from your computer after all. |
Originally Posted by cessil
try this
pawn Код:
|
Originally Posted by DJDhan
My bots have pings ranging from 25 - 175.
|
CMD:mute(playerid, params[])
{
new string[96];
new pname[MAX_PLAYER_NAME];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(ainfo[playerid][Level] == 0) return 0;
if(ainfo[playerid][Level] == 1) return SCM(playerid, Red, "ERROR : Your Admin level is not high enough to use this command!");
if(sscanf(params, "us", playerid2, treason)){
SCM(playerid, Orange, "USAGE : /mute [playerid] [reason]");
SCM(playerid, Lightblue, "FUNCTION : Mutes a particular player. Making him unable to talk");}
else if(playerid2 == INVALID_PLAYER_ID) SCM(playerid, Red, "ERROR : That player is not connected!");-
else if(ainfo[playerid][Level] < ainfo[playerid2][Level]) SCM(playerid, Red, "ERROR : You cant mute Higher Leveled Admins!");
else
{
GetPlayerName(playerid2, pname, sizeof(pname));
format(string, sizeof(string), "SERVER : You have Muted %s Reason : %s", pname, treason);
SCM(playerid, Lightblue, string);
format(string, sizeof(string), "SERVER : An Administrator has Muted you!");
SCM(playerid2, Red, string);
format(string, sizeof(string), "REASON : %s", treason);
SCM(playerid2, Blue, string);
ainfo[playerid2][Muted] = 1;
GTFP(playerid2, "~g~You have been~n~~w~MUTED!", 3000, 3);
}
return 1;
}
CMD:mutelist(playerid, params[])
{
if(ainfo[playerid][Level] == 0) return 0;
if(ainfo[playerid][Level] == 1) SCM(playerid, Red, "ERROR : Your Admin level is not high enough to use this command!");
new count = 0;
new str[96];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
SendClientMessage(playerid, Red, "Listing Currently Muted Players:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && ainfo[i][Muted] > 0)
{
format(str, sizeof(str), "\nPlayer : %s (Player ID : %d)", name, playerid);
count++;
}
}
if(count != 0)
{
SPD(playerid, MUTED, DIALOG_STYLE_MSGBOX, "Muted Player", str, "Done", "Cancel");
}
if(count == 0)
{
SendClientMessage(playerid, Red, "SERVER : There are no muted players at the moment!");
}
return 1;
}
Originally Posted by ViruZZzZ_ChiLLL
No, I meant those said bot attackers that come in your server.
|