10.07.2014, 21:14
Good evening.
Currently MANY servers do not use the GetPlayerVersion function while it is actually useful for various cheats or otherwise.
It is very easy to use.
We will create a variable:
Now use the function with the variable created:
And we kick a player who does not have the correct version of SA: MP with a message:
A simple and optimized code that you can limit cheaters.
Bye!
Currently MANY servers do not use the GetPlayerVersion function while it is actually useful for various cheats or otherwise.
It is very easy to use.
We will create a variable:
pawn Code:
new version[16];
pawn Code:
GetPlayerVersion(playerid, version, sizeof(version));
pawn Code:
if(strcmp(version, "0.3z"))
{
SendClientMessage(playerid, COLOR_ROUGE_CLAIR, "Please install the latest version of SA:MP.");
SetTimerEx("Player_kick", 1000, 0, "d", playerid);
}
Bye!