20.12.2013, 22:53
pawn Код:
public OnPlayerConnect(playerid)
{
new version[40];
GetPlayerVersion(playerid,version,sizeof(version));
if(strcmp(version,"0.3x",false)) == true)
{
KickForMessageDelay(playerid);
SendClientMessage(playerid, 0xFF0000FF, "Please download the latest version of SA-MP!");
}
return 1;
}
stock KickForMessageDelay(playerid)
{
SetTimerEx("AKick",500,false,"i",playerid);
return 1;
}
forward AKick(playerid);
public AKick(playerid)
{
Kick(playerid);
return 1;
}