GangZones
#13

Quote:
Originally Posted by Stepashka
View Post
А часть кода когда игрок подключается к серверу?
PHP Code:
public OnPlayerConnect(playerid)
{
    new 
string[10];
    if(
GetPlayerVersion(playeridstringsizeof(string)))
    {
        if(
strfind(stringCLIENT_VERSIONtrue) == -1)
        {
            
// Если игрок подключается с не валидным Клиентом не соответсвующий с CLIENT_VERSION.
            
new str[70];
            
format(strsizeof(str), "Клиент: {b9c7be}%s | {aac5e3}Требуется: {b9c7be}"CLIENT_VERSION""string);
            
SendClientMessage(playeridCOLOR_LIGHTREDstr);
            
SendClientMessage(playeridCOLOR_LIGHTRED"[!] Ваш клиент устарел, новую версию можно скачать на сайте {b9c7be}rp-skrilax.su");
            
KickD(playerid"");
            return 
true;
        }
        else
        {
            
PI[playerid][AntiAttack]++;
            if(
PI[playerid][AntiAttack] > 1)
            {
                
PI[playerid][AntiAttack] = 0;
                
CheatKick(playerid21);
                return 
false;
            }
            
//
            
SetPVarInt(playerid"AntiBreik"gettime() + 500);
            
SetPVarInt(playerid"GunCheck"gettime() + 500);
            
GetPlayerName(playeridPI[playerid][Name], MAX_PLAYER_NAME);
            
SetPlayerColor(playerid0xFFFFFF00);
               
SetPVarInt(playerid"player_kick_time"GetTickCount() + 15000);
            
Reset(playerid);
            
p_ac{playerid} = 0;
            if(
STimer[playerid] != -1KillTimer(STimer[playerid]), STimer[playerid] = -1;
            if(
tChainSaw[playerid] != -1KillTimer(tChainSaw[playerid]), tChainSaw[playerid] = -1;
            
//
            
RemoveBuildingForPlayer(playerid1411347.19531799.265618.75780.25);
            
RemoveBuildingForPlayer(playerid1411342.93751796.289118.75780.25);
            
RemoveBuildingForPlayer(playerid968, -2436.8125495.468829.67970.25);
            
format(WantNickChange[playerid], MAX_PLAYER_NAME"");
            
ResetPlayerWeapons(playerid);
            
CreateEatTextDraw(playerid);
            for(new 
046i++) Weapons[playerid][i] = 0;
            for(new 
i11i++) GiveGuns[i][playerid] = 0;
            for(new 
1<= TOTALGZi++)
            {
                
GangZoneShowForPlayer(playeridGZInfo[i][gID], GetGangZoneColor(i));
            }
            
GangZoneShowForPlayer(playeridGangZoneBizzWar[0], 0x0bda51FF);
            
GangZoneShowForPlayer(playeridGangZoneBizzWar[1], 0x0bda51FF);
            
GangZoneShowForPlayer(playeridGangZoneBizzWar[2], 0x0bda51FF);
            
//return true;
        
}
    }
    else
    {
        
Kick(playerid);
        return 
false;
    }
    return 
true;

Reply


Messages In This Thread
GangZones - by SanDev - 25.11.2016, 14:18
Re: GangZones - by Mutha_X - 25.11.2016, 15:53
Re: GangZones - by coloN - 25.11.2016, 15:59
Re: GangZones - by SanDev - 25.11.2016, 17:43
Re: GangZones - by S4D - 25.11.2016, 20:42
Re: GangZones - by SanDev - 26.11.2016, 15:15
Re: GangZones - by stabker - 26.11.2016, 16:20
Re: GangZones - by SanDev - 26.11.2016, 17:18
Re: GangZones - by stabker - 26.11.2016, 17:46
Re: GangZones - by SanDev - 26.11.2016, 22:30
Re: GangZones - by SanDev - 27.11.2016, 18:11
Re: GangZones - by Stepashka - 27.11.2016, 18:59
Re: GangZones - by SanDev - 27.11.2016, 20:15
Re: GangZones - by Stepashka - 28.11.2016, 06:37
Re: GangZones - by joker2020pro - 28.11.2016, 07:29
Re: GangZones - by Stepashka - 28.11.2016, 07:38
Re: GangZones - by SanDev - 28.11.2016, 10:02
Re: GangZones - by S4D - 28.11.2016, 12:07
Re: GangZones - by SanDev - 28.11.2016, 14:36

Forum Jump:


Users browsing this thread: 2 Guest(s)