• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] [SOLVED] kick a player when the client different version connects
#2
Code:
public OnPlayerConnect(playerid)
{
? ? new version[11],
? ? ? ? string[32];
? ? GetPlayerVersion(playerid, version, sizeof(version));
? ? format(string, sizeof(string), "Your version of SA-MP: %s", version);
? ? SendClientMessage(playerid, 0xFFFFFFFF, string);
? ? // possible text: "Your version of SA-MP: 0.3.7"
? ?
? ? if (strcmp(version, "0.3.7")) {
? ? ? ? Kick(playerid);
? ? ? ? return 1;
? ? }
? ? return 1;
}
  Reply


Messages In This Thread
RE: how to kick a player when the client different version connects? - by Radical - 2021-04-07, 07:49 AM

Forum Jump: