Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Server Closed to connection

Статус
В этой теме нельзя размещать новые ответы.

-Enot

Компетентный
Эта шляпа не у одного меня..



Список инклудов:

PHP:
#include <a_samp>
#include <a_actor>
#include <a_http>
#include <gl_common>
#include <a_mysql>
#include <sscanf>
#include <dc_cmd>
#include <streamer>
#include <regex>
#include <yom_buttons>
#include <PointToPoint>
#include <strlib>
#include <mxINI>
#include <YSI\y_va>(тут компилятор от Tracer1 выбил рекурсию)
#include <md5>
Далее, сам паблик OnPlayerConnect()

PHP:
public OnPlayerConnect(playerid)
{
    new ip[32],mes[128];
    new nick = pData[playerid][pNickname];
    GetPlayerIp(playerid,ip,32);
    for(new i;i<MAX_PLAYERS;i++)
    {
        if(gReconnectTime[i] <= 0) continue;
        if(!strcmp(ip,gReconnectIP[i],false) && strlen(gReconnectIP[i]))
        {
            format(mes,sizeof(mes),"[A] Reconnect IP: %s = %s || Time: %d || NickName: %s",ip,gReconnectIP[i],gReconnectTime[i],nick);
            AdminChat(CGRAY,mes);
            gReconnectTime[i] += 10;
            SendClientMessage(playerid,CGRAY,"Перезаходить можно не менее чем через 10 секунд");
            /*if(gReconnectTime[i] >= 30)
            {
                new mes[128];
                format(mes,sizeof(mes),"banip %s",ip);
                SendRconCommand(mes);
            }
            NewKick(playerid);*/
            return 0;
        }
    }
    CreateInventory(playerid);
    SetPlayerDataToDefault(playerid);
    format(pTemp[playerid][pIP],32,"%s",ip);
    new slot;
    for(new i;i<MAX_PLAYERS;i++)
    {
        if(!gReconnectTime[i]) {slot = i; break;}
    }
    format(gReconnectIP[slot],32,"%s",pTemp[playerid][pIP]);
    gReconnectTime[slot] = 5;
    TextDrawShowForPlayer(playerid,gState99Text);
    CreateHungerTextDraw(playerid);
    //ResetPlayerWeaponsEx(playerid);
    new Float: gEateryPos[2], str[16];
    gEateryPos[0] = 450.0; gEateryPos[1] = 125.0;
    for(new x = 0; x < 4; x ++) { // цены
        if(x > 0) gEateryPos[1] += 50.0;
        format(str, sizeof(str), "$%i", gEateryCosts[x]);
        gEateryCostTextDraw[playerid][x] = CreatePlayerTextDraw(playerid, gEateryPos[0], gEateryPos[1], str);
        PlayerTextDrawLetterSize(playerid, gEateryCostTextDraw[playerid][x], 0.560000, 2.142500);
        PlayerTextDrawAlignment(playerid, gEateryCostTextDraw[playerid][x], 1);
        PlayerTextDrawColor(playerid, gEateryCostTextDraw[playerid][x], -1);
        PlayerTextDrawSetShadow(playerid, gEateryCostTextDraw[playerid][x], 0);
        PlayerTextDrawSetOutline(playerid, gEateryCostTextDraw[playerid][x], 1);
        PlayerTextDrawBackgroundColor(playerid, gEateryCostTextDraw[playerid][x], 51);
        PlayerTextDrawFont(playerid, gEateryCostTextDraw[playerid][x], 3);
        PlayerTextDrawSetProportional(playerid, gEateryCostTextDraw[playerid][x], 1);
    }
    new Float: gBarPos[2];
    gBarPos[0] = 450.0; gBarPos[1] = 125.0;
    for(new x = 0; x < 5; x ++) { // цены
        if(x > 0) gBarPos[1] += 50.0;
        format(str, sizeof(str), "$%i", gBarCosts[x]);
        gBarCostTextDraw[playerid][x] = CreatePlayerTextDraw(playerid, gBarPos[0], gBarPos[1], str);
        PlayerTextDrawLetterSize(playerid, gBarCostTextDraw[playerid][x], 0.560000, 2.142500);
        PlayerTextDrawAlignment(playerid, gBarCostTextDraw[playerid][x], 1);
        PlayerTextDrawColor(playerid, gBarCostTextDraw[playerid][x], -1);
        PlayerTextDrawSetShadow(playerid, gBarCostTextDraw[playerid][x], 0);
        PlayerTextDrawSetOutline(playerid, gBarCostTextDraw[playerid][x], 1);
        PlayerTextDrawBackgroundColor(playerid, gBarCostTextDraw[playerid][x], 51);
        PlayerTextDrawFont(playerid, gBarCostTextDraw[playerid][x], 3);
        PlayerTextDrawSetProportional(playerid, gBarCostTextDraw[playerid][x], 1);
    }
    gSkinShopPriceDraw[playerid] = CreatePlayerTextDraw(playerid, 31.000000, 224.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, gSkinShopPriceDraw[playerid], 255);
    PlayerTextDrawFont(playerid, gSkinShopPriceDraw[playerid], 3);
    PlayerTextDrawLetterSize(playerid, gSkinShopPriceDraw[playerid], 0.500000, 1.600000);
    PlayerTextDrawColor(playerid, gSkinShopPriceDraw[playerid], -1);
    PlayerTextDrawSetOutline(playerid, gSkinShopPriceDraw[playerid], 0);
    PlayerTextDrawSetProportional(playerid, gSkinShopPriceDraw[playerid], 1);
    PlayerTextDrawSetShadow(playerid, gSkinShopPriceDraw[playerid], 1);
    return 1;
}
Помогите, я теряюсь в догадках, что же может быть..
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу