[FilterScript] Use GetPlayerVersion function.
#1

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:

pawn Code:
new version[16];
Now use the function with the variable created:

pawn Code:
GetPlayerVersion(playerid, version, sizeof(version));
And we kick a player who does not have the correct version of SA: MP with a message:

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);
}
A simple and optimized code that you can limit cheaters.

Bye!
Reply


Messages In This Thread
Use GetPlayerVersion function. - by Baltimore - 10.07.2014, 21:14
Re: Use GetPlayerVersion function. - by ikey07 - 10.07.2014, 21:17
Re: Use GetPlayerVersion function. - by Baltimore - 10.07.2014, 21:23
Re: Use GetPlayerVersion function. - by ikey07 - 10.07.2014, 21:27
Re: Use GetPlayerVersion function. - by FahadKing07 - 10.07.2014, 22:24
Re: Use GetPlayerVersion function. - by AroseKhanNiazi - 11.07.2014, 14:43
Re: Use GetPlayerVersion function. - by Stanford - 12.07.2014, 11:52
Re: Use GetPlayerVersion function. - by iFarbod - 12.07.2014, 16:31
Re: Use GetPlayerVersion function. - by iZN - 12.07.2014, 17:34
Re: Use GetPlayerVersion function. - by silentus - 12.07.2014, 17:37
Re: Use GetPlayerVersion function. - by Ke_NiReM - 12.07.2014, 17:47

Forum Jump:


Users browsing this thread: 3 Guest(s)