You need to have SAMP Version 0.3x-r2
#1

Hello, how can i make something like that that a player needs 0.3x-r2 to join my server?
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerVersion
Reply
#3

https://sampwiki.blast.hk/wiki/GetPlayerVersion

EDIT: ups :/ too late xD was waiting 80 seconds u.u
Reply
#4

****** GetPlayerVersion I think.
Reply
#5

the latest versions aren't backwards compatible.. so either way they need the client in the same family. and there's no r2 client either so..yea
Reply
#6

But can i get a short example for this too? Also when a player joins he have wrong version > kick
Reply
#7

What's the point of making that?
Reply
#8

Because with 0.3x-r2 you cant use ****** correctly. So that players with 0.3x cant join
Reply
#9

Код:
	new version[40];
	GetPlayerVersion(playerid, version, sizeof(version));
	if(strcmp(version, "0.3x-R1-2"))
	{
	    return Kick(playerid);
	}
Reply
#10

The latest client version is 0.3x-R1-2.
pawn Код:
public OnPlayerConnect( playerid )
{
    new
        samp_version[ 40 ]
    ;
    GetPlayerVersion( playerid, samp_version, sizeof( samp_version ) );
    if( strcmp( samp_version, "0.3x-R1-2" ) != 0 )
    {
        Kick( playerid );
        return 0;
    }
    // code..
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)