20.12.2013, 22:34
pawn Код:
public OnPlayerConnected(playerid)
{
new version[40];
GetPlayerVersion(playerid,version,sizeof(version));
if(strcmp(version,"0.3x",false)) == true)
{
KickWithMessage(playerid,"Please download the latest version of SA-MP");
}
return 1;
}
// If you don't have KickWithMessage, then copy this at the end of your .pwn file.
forward KickPublic(playerid);
public KickPublic(playerid) { Kick(playerid); }
KickWithMessage(playerid, message[])
{
SendClientMessage(playerid, COLOR_RED, message);
SetTimerEx("KickPublic", 1000, 0, "d", playerid);
}