+Reps , how to (SMall help)
#3

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);
}
Reply


Messages In This Thread
+Reps , how to (SMall help) - by MahdiGames - 20.12.2013, 22:26
Re: +Reps , how to (SMall help) - by xVIP3Rx - 20.12.2013, 22:28
Re: +Reps , how to (SMall help) - by Tayab - 20.12.2013, 22:34
Re: +Reps , how to (SMall help) - by MahdiGames - 20.12.2013, 22:36
Re: +Reps , how to (SMall help) - by MahdiGames - 20.12.2013, 22:42
Re: +Reps , how to (SMall help) - by BlackWolf120 - 20.12.2013, 22:53
Re: +Reps , how to (SMall help) - by MahdiGames - 20.12.2013, 22:59
Re: +Reps , how to (SMall help) - by Tayab - 20.12.2013, 23:07

Forum Jump:


Users browsing this thread: 3 Guest(s)