GetPlayerVersion
#1

Good evening.

I want to know how to check if the player has the latest version of SAMP with GetPlayerVersion function.

I do not know how to find out if it has the 0.3z and if this is not the case of the kick.

Thx
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        new version[16];
        GetPlayerVersion(playerid, version, sizeof (version));
        if (strcmp(version, "0.3z")) return Kick(playerid);
    }
    // rest of code..
    return 1;
}
Reply
#3

Ah thx !!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)