Need help
#1

Okay, so I have 3 questions...

1.) What is the usual ping of a bot?

2.) What the hell is wrong with my mutelist?!
It only shows the recently muted player.
pawn Код:
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;
}
3.) Why is it sometimes, my dini scripts resets, or turns into 0.
Quote:

info[playerid][Level] = 1;
then after a GMX or reloadfs
it turns into info[playerid][Level] = 0;

Thanks.
Reply
#2

Bump.

Anyone?
Reply
#3

try this
pawn Код:
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;
}
Reply
#4

My bots have pings ranging from 25 - 175.
Reply
#5

Dont bots have the same ping as you do?
Its coming from your computer after all.
Reply
#6

Quote:
Originally Posted by Joe Torran C
Dont bots have the same ping as you do?
Its coming from your computer after all.
They should, practically speaking. I have a ping of 15-45 in my test server and they get pings higher than me. I just printed their pings under onplayerspawn
Reply
#7

Quote:
Originally Posted by cessil
try this
pawn Код:
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;
}
okay thanks I'm going to try this now

Quote:
Originally Posted by DJDhan
My bots have pings ranging from 25 - 175.
No, I meant those said bot attackers that come in your server.
Reply
#8

BUMP!

Can anyone please help me, I've been having this trouble
for the last 3 days or so -.-

Mute and Mutelist :
pawn Код:
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;
}
Thank you
Reply
#9

Quote:
Originally Posted by ViruZZzZ_ChiLLL
No, I meant those said bot attackers that come in your server.
I heard a few 65535 theories, as well as the best way to go anti-bot is by checking if OnPlayerUpdate is called.
Reply
#10

Anyone?

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)