[Pawn] [SOLVED] kick a player when the client different version connects - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] [SOLVED] kick a player when the client different version connects (/showthread.php?tid=1845) |
[SOLVED] kick a player when the client different version connects - PutuSuhartawan - 2021-04-07 public OnPlayerConnect(playerid) { ? ? new ? ? ? ? string[24]; ? ? GetPlayerVersion(playerid, string, sizeof(string)); ? ? format(string, sizeof(string), "Your version of SA-MP: %s", string); ? ? SendClientMessage(playerid, 0xFFFFFFFF, string); ? ? // possible text: "Your version of SA-MP: 0.3.7" ? ? return 1; } what next? RE: how to kick a player when the client different version connects? - Radical - 2021-04-07 Code: public OnPlayerConnect(playerid) |