Would it work???
#1

As i dont have any way to test it I ask simple Question "Will it work"
pawn Код:
new string[128];
    if (PlayerInfo[playerid][pAdmin] <1 || !IsPlayerAdmin(playerid))
    if (GetPlayerPing(playerid) > 500)
    {
        format(string,sizeof(string),"[Server]: Player %s Have been kicked from server (High Ping, %d /500)",GetPlayerNameEx(playerid),GetPlayerPing(playerid));
        SendClientMessageToAll(COLOR_DRED, string);
        Kick(playerid);
    }
Reply
#2

That should work indeed.
Reply
#3

Thanks for Help
Reply
#4

pawn Код:
new string[128];
if (PlayerInfo[playerid][pAdmin] <1 || !IsPlayerAdmin(playerid))
{
    if (GetPlayerPing(playerid) > 500)
    {
        format(string,sizeof(string),"[Server]: Player %s Have been kicked from server (High Ping, %d /500)",GetPlayerNameEx(playerid),GetPlayerPing(playerid));
        SendClientMessageToAll(COLOR_DRED, string);
        Kick(playerid);
    }
}
You forgot to open "{"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)