01.12.2013, 12:47
Hello, how can i make something like that that a player needs 0.3x-r2 to join my server?
new version[40]; GetPlayerVersion(playerid, version, sizeof(version)); if(strcmp(version, "0.3x-R1-2")) { return Kick(playerid); }
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;
}