SA-MP Forums Archive
Would it work??? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Would it work??? (/showthread.php?tid=345963)



Would it work??? - Audi_Quattrix - 26.05.2012

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);
    }



Re: Would it work??? - iGetty - 26.05.2012

That should work indeed.


Re: Would it work??? - Audi_Quattrix - 26.05.2012

Thanks for Help


Re: Would it work??? - TzAkS. - 26.05.2012

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 "{"