Help error....
#1

Can you solve my problem?
pawn Код:
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(40) : warning 201: redefinition of constant/macro (symbol "GetPlayerMoney")
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(41) : warning 201: redefinition of constant/macro (symbol "ResetPlayerMoney")
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(42) : warning 201: redefinition of constant/macro (symbol "GivePlayerMoney")
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(43) : warning 201: redefinition of constant/macro (symbol "PutPlayerInVehicle")
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(44) : warning 201: redefinition of constant/macro (symbol "GivePlayerWeapon")
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(45) : warning 201: redefinition of constant/macro (symbol "SetPlayerPos")
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(46) : warning 201: redefinition of constant/macro (symbol "SetVehiclePos")
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(47) : warning 201: redefinition of constant/macro (symbol "SetPlayerHealth")
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(48) : warning 201: redefinition of constant/macro (symbol "SetPlayerArmour")
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(49) : warning 201: redefinition of constant/macro (symbol "TogglePlayerControllable")
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(2981) : error 017: undefined symbol "JB_SetPlayerPos"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3388) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3394) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3400) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3406) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3412) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3418) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3424) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3506) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3660) : error 017: undefined symbol "JB_TogglePlayerControllable"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3864) : error 017: undefined symbol "JB_TogglePlayerControllable"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3877) : error 017: undefined symbol "JB_TogglePlayerControllable"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(3890) : error 017: undefined symbol "JB_TogglePlayerControllable"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(4246) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(4277) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(4315) : error 017: undefined symbol "JB_TogglePlayerControllable"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(4367) : error 017: undefined symbol "JB_SetPlayerPos"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(4473) : error 017: undefined symbol "JB_TogglePlayerControllable"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(4508) : error 017: undefined symbol "JB_TogglePlayerControllable"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(4532) : error 017: undefined symbol "JB_TogglePlayerControllable"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(4536) : error 017: undefined symbol "JB_SetPlayerPos"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(4962) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(5503) : error 017: undefined symbol "JB_GivePlayerMoney"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(5635) : error 017: undefined symbol "JB_SetPlayerPos"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(5645) : error 017: undefined symbol "JB_SetPlayerPos"
D:\Jocuri\SAMP\Indungi HD Rp\gamemodes\R2P.pwn(5683) : error 017: undefined symbol "JB_TogglePlayerControllable"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

We cant help you, if you don't post any part of your script.
Reply
#3

40-49
pawn Код:
#define GetPlayerMoney JB_GetPlayerMoney
#define ResetPlayerMoney JB_ResetPlayerMoney
#define GivePlayerMoney JB_GivePlayerMoney
#define PutPlayerInVehicle JB_PutPlayerInVehicle
#define GivePlayerWeapon JB_GivePlayerWeapon
#define SetPlayerPos JB_SetPlayerPos
#define SetVehiclePos JB_SetVehiclePos
#define SetPlayerHealth JB_SetPlayerHealth
#define SetPlayerArmour JB_SetPlayerArmour
#define TogglePlayerControllable JB_TogglePlayerControllable
#define JB_IsPlayerAdmin IsAnAdmin
2981:
pawn Код:
SetPlayerPos(playerid,246.5,67.5,1003.6);
3388-3890:
pawn Код:
GivePlayerMoney(i, - 700);
                            SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai luat pachetul comandat.");
                        }
                        case 2:
                        {
                            ServerGivePlayerWeapons(i, 24, 50); ServerGivePlayerWeapons(i, 29, 500); ServerGivePlayerWeapons(i, 25, 50); ServerGivePlayerWeapons(i, 31, 500); ServerGivePlayerWeapons(i, 4, 1);
                            GivePlayerMoney(i, - 800);
                            SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai luat pachetul comandat.");
                        }
                        case 3:
                        {
                            ServerGivePlayerWeapons(i, 24, 50); ServerGivePlayerWeapons(i, 29, 500); ServerGivePlayerWeapons(i, 25, 50); ServerGivePlayerWeapons(i, 30, 500); ServerGivePlayerWeapons(i, 4, 1);
                            GivePlayerMoney(i, - 800);
                            SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai luat pachetul comandat.");
                        }
                        case 4:
                        {
                            ServerGivePlayerWeapons(i, 24, 50); ServerGivePlayerWeapons(i, 29, 500); ServerGivePlayerWeapons(i, 25, 50); ServerGivePlayerWeapons(i, 31, 500); ServerGivePlayerWeapons(i, 4, 1); ServerGivePlayerWeapons(i, 34, 20);
                            GivePlayerMoney(i, - 1000);
                            SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai luat pachetul comandat.");
                        }
                        case 5:
                        {
                            ServerGivePlayerWeapons(i, 24, 50); ServerGivePlayerWeapons(i, 29, 500); ServerGivePlayerWeapons(i, 25, 50); ServerGivePlayerWeapons(i, 30, 500); ServerGivePlayerWeapons(i, 4, 1); ServerGivePlayerWeapons(i, 34, 20);
                            GivePlayerMoney(i, - 1000);
                            SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai luat pachetul comandat.");
                        }
                        case 6:
                        {
                            ServerGivePlayerWeapons(i, 24, 50); ServerGivePlayerWeapons(i, 29, 500); ServerGivePlayerWeapons(i, 25, 50); ServerGivePlayerWeapons(i, 31, 500); ServerGivePlayerWeapons(i, 4, 1); ServerGivePlayerWeapons(i, 34, 20);
                            GivePlayerMoney(i, - 1200);
                            SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai luat pachetul comandat.");
                        }
                        case 7:
                        {
                            ServerGivePlayerWeapons(i, 24, 50); ServerGivePlayerWeapons(i, 29, 500); ServerGivePlayerWeapons(i, 25, 50); ServerGivePlayerWeapons(i, 30, 500); ServerGivePlayerWeapons(i, 4, 1); ServerGivePlayerWeapons(i, 34, 20);
                            GivePlayerMoney(i, - 1200);
                            SendClientMessage(i, COLOR_LIGHTBLUE, "* Ai luat pachetul comandat.");
                        }
                    }
                    OrderReady[i] = 0;
                }
            }//Hitman delivery stuff

            else if(PlayerOnMission[i] > 0 && PlayMission[kToggle] == 0)
            {
                if(MissionCheckpoint[i] == 1 && PlayerToPoint(10.0, i,PlayMission[kCP1][0],PlayMission[kCP1][1],PlayMission[kCP1][2]))
                {
                    RingTone[i] = 20;
                    format(string, sizeof(string), "%s", PlayMission[kGText1]);
                    GameTextForPlayer(i, string, 8000, 3);
                    format(string, sizeof(string), "%s", PlayMission[kText4]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    format(string, sizeof(string), "%s", PlayMission[kText5]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    format(string, sizeof(string), "%s", PlayMission[kText6]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    MissionCheckpoint[i] = 2;
                }
                else if(MissionCheckpoint[i] == 2 && PlayerToPoint(10.0, i,PlayMission[kCP2][0],PlayMission[kCP2][1],PlayMission[kCP2][2]))
                {
                    RingTone[i] = 20;
                    format(string, sizeof(string), "%s", PlayMission[kGText2]);
                    GameTextForPlayer(i, string, 8000, 3);
                    format(string, sizeof(string), "%s", PlayMission[kText7]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    format(string, sizeof(string), "%s", PlayMission[kText8]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    format(string, sizeof(string), "%s", PlayMission[kText9]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    MissionCheckpoint[i] = 3;
                }
                else if(MissionCheckpoint[i] == 3 && PlayerToPoint(10.0, i,PlayMission[kCP3][0],PlayMission[kCP3][1],PlayMission[kCP3][2]))
                {
                    RingTone[i] = 20;
                    format(string, sizeof(string), "%s", PlayMission[kGText3]);
                    GameTextForPlayer(i, string, 8000, 3);
                    format(string, sizeof(string), "%s", PlayMission[kText10]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    format(string, sizeof(string), "%s", PlayMission[kText11]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    format(string, sizeof(string), "%s", PlayMission[kText12]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    MissionCheckpoint[i] = 4;
                }
                else if(MissionCheckpoint[i] == 4 && PlayerToPoint(10.0, i,PlayMission[kCP4][0],PlayMission[kCP4][1],PlayMission[kCP4][2]))
                {
                    RingTone[i] = 20;
                    format(string, sizeof(string), "%s", PlayMission[kGText4]);
                    GameTextForPlayer(i, string, 8000, 3);
                    format(string, sizeof(string), "%s", PlayMission[kText13]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    format(string, sizeof(string), "%s", PlayMission[kText14]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    format(string, sizeof(string), "%s", PlayMission[kText15]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    MissionCheckpoint[i] = 5;
                }
                else if(MissionCheckpoint[i] == 5 && PlayerToPoint(10.0, i,PlayMission[kCP5][0],PlayMission[kCP5][1],PlayMission[kCP5][2]))
                {
                    RingTone[i] = 20;
                    format(string, sizeof(string), "%s", PlayMission[kGText5]);
                    GameTextForPlayer(i, string, 8000, 3);
                    format(string, sizeof(string), "%s", PlayMission[kText16]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    format(string, sizeof(string), "%s", PlayMission[kText17]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    format(string, sizeof(string), "%s", PlayMission[kText18]);
                    SendClientMessage(i, COLOR_YELLOW2, string);
                    MissionCheckpoint[i] = 6;
                }
                else if(MissionCheckpoint[i] == 6 && PlayerToPoint(10.0, i,PlayMission[kCP6][0],PlayMission[kCP6][1],PlayMission[kCP6][2]))
                {
                    RingTone[i] = 20;
                    format(string, sizeof(string), "%s", PlayMission[kGText6]);
                    GameTextForPlayer(i, string, 8000, 3);
                    format(string, sizeof(string), "..:: Misiune indeplinita : %s | Premiu primit: $%d ::..", PlayMission[kTitle], PlayMission[kReward]);
                    SendClientMessage(i, COLOR_GREEN, string);
                    GivePlayerMoney(i, PlayMission[kReward]);
                    PlayerInfo[i][pMissionNr] = PlayerOnMission[i];
                    MissionCheckpoint[i] = 0;
                    PlayerOnMission[i] = 0;
                    }
                }
            }
        }
        return 1;
    }
public CarEnter(playerid,carid)
{
    if(AutoInfo[carid][aStats]==0 && carid < lecar)
    {
        new string[512];
        format(string,sizeof(string),"{00FF00}Level: {F81414}%d {00FF00}| {00FF00}Pret: {F81414}%d\n{00FF00}scrie 2 culori prin virgula\n{F81414}Exemplu: [2,6] fara [] !\n{00FF00}Daca nu pui o culoarea ea va ramane asa cum este acum",
        AutoInfo[carid][aKey], AutoInfo[carid][aPrice]);
        ShowPlayerDialog(playerid,920,DIALOG_STYLE_INPUT,"{F81414}Piata auto",string,"Cumpara","Renunta");
    }
/*  new cari = GetPlayerVehicleID(playerid);
    if(cari == PlayerInfo[playerid][pCarKey2] || cari == PlayerInfo[playerid][pCarKey] || cari == PlayerInfo[playerid][pCarKey3] || PlayerInfo[playerid][pAdmin] >= 1)
    {
    }
    else if(AutoInfo[carid][aStats]==0)
    {
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"Aceasta masina nu este a ta!");
        RemovePlayerFromVehicle(playerid);
    }*/


/*//==============================================================================
    new veh = GetPlayerVehicleID(playerid);
    if(AutoInfo[veh][aAlarm] == 1)
    {
        new wanted[128];
        new sendername[MAX_PLAYER_NAME];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
        TimerAlarmKill = SetTimerEx("TimerAlarm",30000,1,"i",playerid);
        AlarmStatus[veh] = true;
        format(wanted, sizeof(wanted), "Securitate: Catre toate posturile! %s a urcat intr-o masina si a pornit alarma",sendername);
        SendFamilyMessage(1, COLOR_DBLUE, wanted);
        format(wanted, sizeof(wanted), "Securitate: Trebuie prins urgent! ID-ul masinii este: %d ",veh);
        SendFamilyMessage(1, COLOR_DBLUE, wanted);
    }
    else if(AutoInfo[veh][aAlarm] == 0)
    {
        GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
        KillTimer(TimerAlarmKill);
        AlarmStatus[veh] = false;
    }
//==============================================================================*/

   
    if(carid >= YAK[0] && carid <= YAK[1])
    {
        if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}Yakuza!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= VAG[0] && carid <= VAG[1])
    {
        if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}Los Santos Vagos Gang!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= Bik[0] && carid <= Bik[1])
    {
        if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}Bikers!");
            RemovePlayerFromVehicle(playerid);
        }
    }

    if(carid >= LIC[0] && carid <= LIC[1])
    {
        if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || TakingLesson[playerid] == 1)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}Instructori!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= RM[0] && carid <= RM[1])
    {
        if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}Russian Mafia!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= RIFA[0] && carid <= RIFA[1])
    {
        if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}The Rifa Gang!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= EL[0] && carid <= EL[1])
    {
        if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}El Coronos Gang!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= KOL[0] && carid <= KOL[1])
    {
        if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}Gospodaria taraneasca!");
            RemovePlayerFromVehicle(playerid);
        }
    }
//------------------------------------[Терористы]---------------------------
        if(carid >= Ter[0] && carid <= Ter[1])
        {
            if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
            {
            }
            else
            {
                TogglePlayerControllable(playerid, 1);
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_WHITE, "{ffffff}Nu esti membru {F81414}Terrorists");
            }
        }
//=========Донат Кар=================//
    if(carid >= DONAT[0] && carid <= DONAT[1])
    {
        if(PlayerInfo[playerid][pPhousekey] == 7)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{00FF00}Aceasta masina este una personala!");
            SendClientMessage(playerid,COLOR_RED,"{F81414}Este disponibila datorita programei :{00FF00} Casa visurilor tale!");
            RemovePlayerFromVehicle(playerid);
        }
    }
//=========Донат Кар=================//
    if(carid >= DONAT1[0] && carid <= DONAT1[1])
    {
        if(PlayerInfo[playerid][pPhousekey] == 84)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{00FF00}Aceasta masina este una personala!");
            SendClientMessage(playerid,COLOR_RED,"{F81414}Este disponibila datorita programei :{00FF00} Casa visurilor tale!");
            RemovePlayerFromVehicle(playerid);
        }
    }
//=========Донат Кар=================//
    if(carid >= DONAT2[0] && carid <= DONAT2[1])
    {
        if(PlayerInfo[playerid][pPhousekey] == 101)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{00FF00}Aceasta masina este una personala!");
            SendClientMessage(playerid,COLOR_RED,"{F81414}Este disponibila datorita programei :{00FF00} Casa visurilor tale!");
            RemovePlayerFromVehicle(playerid);
        }
    }
//=========Донат Кар=================//
    if(carid >= DONAT3[0] && carid <= DONAT3[1])
    {
        if(PlayerInfo[playerid][pPhousekey] == 91)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{00FF00}Aceasta masina este una personala!");
            SendClientMessage(playerid,COLOR_RED,"{F81414}Este disponibila datorita programei :{00FF00} Casa visurilor tale!");
            RemovePlayerFromVehicle(playerid);
        }
    }
//=========Донат Кар=================//
    if(carid >= DONAT4[0] && carid <= DONAT4[1])
    {
        if(PlayerInfo[playerid][pPhousekey] == 115)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{00FF00}Aceasta masina este una personala!");
            SendClientMessage(playerid,COLOR_RED,"{F81414}Este disponibila datorita programei :{00FF00} Casa visurilor tale!");
            RemovePlayerFromVehicle(playerid);
        }
    }
//=========Донат Кар=================//
    if(carid >= DONAT5[0] && carid <= DONAT5[1])
    {
        if(PlayerInfo[playerid][pPhousekey] == 42)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{00FF00}Aceasta masina este una personala!");
            SendClientMessage(playerid,COLOR_RED,"{F81414}Este disponibila datorita programei :{00FF00} Casa visurilor tale!");
            RemovePlayerFromVehicle(playerid);
        }
    }
//===================================//
    if(carid >= ARMY[0] && carid <= ARMY[1])
    {
        if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}Army!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= MER[0] && carid <= MER[1])
    {
        if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}Primaria!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= LCN[0] && carid <= LCN[1])
    {
        if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}La Cosa Nostra!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= GROV[0] && carid <= GROV[1])
    {
        if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}Grove Street!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= BAL[0] && carid <= BAL[1])
    {
        if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}The Ballas Gang!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= HIT[0] && carid <= HIT[1])
    {
        if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"{ffffff}Nu esti membru {F81414}Killers!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= MEH[0] && carid <= MEH[1])
    {
        if(PlayerInfo[playerid][pJob] == 7)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"Nu lucrezi ca mecanic!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= BUS[0] && carid <= BUS[1] || carid >= buses[0] && carid <= buses[1])
    {
        if(PlayerInfo[playerid][pJob] == 14)
        {
            ShowPlayerDialog(playerid, 4005, DIALOG_STYLE_LIST,"Alege traseul", "Intercity LS\nIntercity SF\nStatie LS << >> Statie SF\nStatie SF << >> Statie LV", "Done", "Renunta");
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"Nu esti Sofer de autobuz!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= FermCar[0] && carid <= FermCar[1])
    {
        if(InWork[playerid] == 1)
        {
            ShowPlayerDialog(playerid,9978,DIALOG_STYLE_MSGBOX,"Job:","Vrei sa incepi colectarea legumelor sau sa termini?","Incepe","Termina");
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"* Nu esti fermier!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    if(carid >= TRUCK[0] && carid <= TRUCK[1])
        {
        if(PlayerInfo[playerid][pJob] == 16)
        {
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"Nu esti trucker!");
            RemovePlayerFromVehicle(playerid);
        }
    }
//------------------------------------[ZAO]---------------------------
        if(carid >= ZAO[0] && carid <= ZAO[1])
        {
            if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
            {
            }
            else
            {
                TogglePlayerControllable(playerid, 1);
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "{ffffff}Masina {F81414}Franconstruct!");
            }
        }
//------------------------------------[ZAO]---------------------------
        if(carid >= Alb[0] && carid <= Alb[1])
        {
            if(PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
            {
            }
            else
            {
                TogglePlayerControllable(playerid, 1);
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "{ffffff}Masina {F81414}Mafia Albaneza!");
            }
        }
//------------------------------------[ADMIN_CAR]-------------------------------------
        if(carid >= ADM[0] && carid <= ADM[1])
        {
            if (PlayerInfo[playerid][pAdmin] >= 1)
            {
            }
            else
            {
                TogglePlayerControllable(playerid, 1);
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_RED, "{ffffff}Masina {F81414}Admin!");
            }
        }
4246-4962:
pawn Код:
GivePlayerMoney(i, value);
                BizzInfo[bizid][bTill] -= value;
            }
        }
    }
    return 1;
}

public ExtortionSBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), "No-one");
    if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
    {
        return 0;
    }
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new name[MAX_PLAYER_NAME];
            new wstring[MAX_PLAYER_NAME];
            GetPlayerName(i, name, sizeof(name));
            format(string, sizeof(string), "%s", name);
            strmid(wstring, string, 0, strlen(string), 255);
            if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
            {
                new value = money / 100;
                value = value * 10;
                NormMoney[i] = 2;
                AntiMoney[i] = AntiMoney[i] + value;
                GivePlayerMoney(i, value);
                SBizzInfo[bizid][sbTill] -= value;
            }
        }
    }
    return 1;
}

public PreparePaintball()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerPaintballing[i] != 0)
            {
                SendClientMessage(i, COLOR_YELLOW, "Paintball va incepe in 20 secunde.");
            }
        }
    }
    SetTimer("StartPaintball", 20000, 0);
    return 1;
}

public StartPaintball()
{
    PaintballRound = 1;
    StartingPaintballRound = 0;
    PaintballWinner = 999;
    PaintballWinnerKills = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerPaintballing[i] != 0)
            {
                ResetPlayerWeapons(i);
                ServerGivePlayerWeapons(i, 29, 999);
                TogglePlayerControllable(i, 1);
                SendClientMessage(i, COLOR_YELLOW, "Meciul a iceput,au ramas 4 minute!");
                PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
            }
        }
    }
    SetTimer("PaintballEnded", 240000, 0);
    return 1;
}

public PaintballEnded()
{
    new string[256];
    new name[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerPaintballing[i] != 0)
            {
                if(IsPlayerConnected(PaintballWinner))
                {
                    GetPlayerName(PaintballWinner, name, sizeof(name));
                    format(string,sizeof(string), "** %s a castigat meciul cu %d victime **",name,PaintballWinnerKills);
                    SendClientMessage(i, COLOR_WHITE, string);
                }
                PlayerInfo[i][pGun0] = 1;//Оружие слот 0
                PlayerInfo[i][pGun1] = 24;//Оружие слот 1
                PlayerInfo[i][pGun2] = 30;//Оружие слот 2
                PlayerInfo[i][pGun3] = 0;//Оружие слот 3
                PlayerInfo[i][pGun4] = 0;//Оружие слот 4
                PlayerInfo[i][pGun5] = 0;//Оружие слот 5
                PlayerInfo[i][pGun6] = 0;//Оружие слот 6
                PlayerInfo[i][pGun7] = 0;//Оружие слот 7
                PlayerInfo[i][pGun8] = 0;//Оружие слот 8
                PlayerInfo[i][pGun9] = 0;//Оружие слот 9
                PlayerInfo[i][pGun10] = 0;//Оружие слот 10
                PlayerInfo[i][pGun11] = 0;//Оружие слот 11
                PlayerInfo[i][pAmmo0] = 999;//Патроны слот 0
                PlayerInfo[i][pAmmo1] = 999;//Патроны слот 1
                PlayerInfo[i][pAmmo2] = 999;//Патроны слот 2
                PlayerInfo[i][pAmmo3] = 0;//Патроны слот 3
                PlayerInfo[i][pAmmo4] = 0;//Патроны слот 4
                PlayerInfo[i][pAmmo5] = 0;//Патроны слот 5
                PlayerInfo[i][pAmmo6] = 0;//Патроны слот 6
                PlayerInfo[i][pAmmo7] = 0;//Патроны слот 7
                PlayerInfo[i][pAmmo8] = 0;//Патроны слот 8
                PlayerInfo[i][pAmmo9] = 0;//Патроны слот 9
                PlayerInfo[i][pAmmo10] = 0;//Патроны слот 10
                PlayerInfo[i][pAmmo11] = 0;//Патроны слот 11
                ResetPlayerWeapons(i);
                PlayerPaintballing[i] = 0;
                SetPlayerPos(i, SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]);
            }
        }
    }
    AnnouncedPaintballRound = 0;
    PaintballRound = 0;
    return 1;
}

public PrepareKarting()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
            {
                CP[i] = 9;
                DestroyDynamicCP(checkpoints[i]);
                checkpoints[i] = CreateDynamicCP(2308.3540,-2354.0039,12.6842, 8.0,-1,-1,i,99999.9);
                SendClientMessage(i, COLOR_YELLOW, "Kart race incepe in 20 secunde.");
            }
        }
    }
    SetTimer("StartKarting", 20000, 0);
    return 1;
}

public StartKarting()
{
    KartingRound = 1;
    StartingKartRound = 0;
    EndingKartRound = 0;
    FirstKartWinner = 999;
    SecondKartWinner = 999;
    ThirdKartWinner = 999;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
            {
                CP[i] = 10;
                SendClientMessage(i, COLOR_YELLOW, "Culoarea verde, go go go !");
                PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
                DestroyDynamicCP(checkpoints[i]);
                checkpoints[i] = CreateDynamicCP(2308.3540,-2354.0039,12.6842, 8.0,-1,-1,i,99999.9);
            }
        }
    }
    SetTimer("KartingEnded", 240000, 0);
    return 1;
}

public KartingEnded()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
            {
                CP[i] = 0;
                DestroyDynamicCP(checkpoints[i]);
            }
        }
    }
    AnnouncedKartRound = 0;
    KartingRound = 0;
    return 1;
}

public DollahScoreUpdate()
{
    new LevScore;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            LevScore = PlayerInfo[i][pLevel];
            SetPlayerScore(i, LevScore);
        }
    }
    return 1;
}

stock right(source[], len)
{
    new retval[MAX_STRING], srclen;
    srclen = strlen(source);
    strmid(retval, source, srclen - len, srclen, MAX_STRING);
    return retval;
}

public Spectator()
{
    new string[256];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(KickPlayer[i]==1) { Kick(i); }
            else if(KickPlayer[i]==2) { Ban(i); }
            if(Spectate[i] < 253 && Spectate[i] != 255)
            {
                SetPlayerColor(i,COLOR_SPEC);
                TogglePlayerControllable(i, 0);
                new targetid = Spectate[i];
                if(IsPlayerConnected(targetid))
                {
                    TogglePlayerSpectating(i, 1);
                    if(PlayerInfo[i][pAdmin] >= 1)
                    {
                        new Float:health;
                        new name[MAX_PLAYER_NAME];
                        GetPlayerName(targetid, name, sizeof(name));
                        GetPlayerHealth(targetid, health);
                        format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~y~%s(ID:%d)~n~~y~health:%.1f",name,targetid,health);
                        GameTextForPlayer(i, string, 2500, 3);
                    }
                    if(IsPlayerInAnyVehicle(targetid))
                    {
                        new carid = GetPlayerVehicleID(targetid);
                        PlayerSpectateVehicle(i, carid);
                    }
                    else
                    {
                        PlayerSpectatePlayer(i, targetid);
                    }
                    if(GetPlayerInterior(targetid) == 0)
                    {
                        SetPlayerInterior(i,0);
                    }
                    else if(GetPlayerInterior(targetid) > 0)
                    {
                        SetPlayerInterior(i,GetPlayerInterior(targetid));
                    }
                }//Targetid connected
            }
            if(Spectate[i] == 253)
            {
                TogglePlayerControllable(i, 1);
                TogglePlayerSpectating(i, 0);
                SetPlayerInterior(i,Unspec[i][sPint]);
                PlayerInfo[i][pInt] = Unspec[i][sPint];
                PlayerInfo[i][pLocal] = Unspec[i][sLocal];
                Unspec[i][sLocal] = 255;
                SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][sPx],  Unspec[i][sPy], Unspec[i][sPz]-1.0, 1.0, -1, -1, -1, -1, -1, -1);
                gTeam[i] = PlayerInfo[i][pTeam];
                SetPlayerToTeamColor(i);
                MedicBill[i] = 0;
                if(PlayerInfo[i][pDonateRank] > 0)
                {
                    SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][Coords][0], Unspec[i][Coords][1], Unspec[i][Coords][2], 10.0, -1, -1, -1, -1, -1, -1);
                    SpawnPlayer(i);
                    SetCameraBehindPlayer(i);
                }
                else
                {
                    SpawnPlayer(i);
                }
                Spectate[i] = 255;
            }
            if(Spectate[i] == 254)
            {
                TogglePlayerControllable(i, 1);
                SetPlayerInterior(i,Unspec[i][sPint]);
                PlayerInfo[i][pInt] = Unspec[i][sPint];
                PlayerInfo[i][pLocal] = Unspec[i][sLocal];
                SetPlayerPos(i, Unspec[i][sPx],  Unspec[i][sPy], Unspec[i][sPz]);
                Spectate[i] = 255;
            }
            if(Spectate[i] == 256)
            {
                SetPlayerToTeamColor(i);
                Spectate[i] = 255;
            }
            if(Spectate[i] == 257)
            {
                Spectate[i] = 254;
            }
        }
    }
}

public IsVehicleOccupied(vehicleid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInVehicle(i,vehicleid)) return 1;
}
return 0;
}

//------------------------------------------------------------------------------------------------------
public IsAnInstructor(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new leader = PlayerInfo[playerid][pLeader];
        new member = PlayerInfo[playerid][pMember];
        if(member==11)
        {
            return 1;
        }
        else if(leader==11)
        {
            return 1;
        }
    }
    return 0;
}

public IsAMember(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new leader = PlayerInfo[playerid][pLeader];
        new member = PlayerInfo[playerid][pMember];
        if(member==5 || member==6 || member==8 || member==12 || member==13 || member==14 || member==15 || member==16 || member==17 || member==18 || member==21 || member == 22)
        {
            return 1;
        }
        else if(leader==5 || leader==6 || leader==8 || leader==12 || leader==13 || leader==14 || leader==15 || leader==16 || leader==17 || leader==18 || leader==21 || leader == 22)
        {
            return 1;
        }
    }
    return 0;
}

public IsACop(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new leader = PlayerInfo[playerid][pLeader];
        new member = PlayerInfo[playerid][pMember];
        if(member==1 || member==2 || member==3 || member ==7 )
        {
            return 1;
        }
        else if(leader==1 || leader==2 || leader==3 || leader==7 )
        {
            return 1;
        }
    }
    return 0;
}

public IsAtClothShop(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerToPoint(25.0,playerid,204.3487,-166.3923,1000.5234) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
        {//Binco & Suburban
            return 1;
        }
        else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
        {//Zip & Victim
            return 1;
        }
    }
    return 0;
}

public IsAtGasStation(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906))
        {//LS
            return 1;
        }
        else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
        {//LS
            return 1;
        }
        else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
        {//SF
            return 1;
        }
        else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
        {//Between LS and SF
            return 1;
        }
        else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
        {//LV
            return 1;
        }
        else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165))
        {//LV
            return 1;
        }
        else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
        {//LV
            return 1;
        }
    }
    return 0;
}

public IsAtFishPlace(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerToPoint(1.0,playerid,403.8266,-2088.7598,7.8359) || PlayerToPoint(1.0,playerid,398.7553,-2088.7490,7.8359))
        {//Fishplace at the bigwheel
            return 1;
        }
        else if(PlayerToPoint(1.0,playerid,396.2197,-2088.6692,7.8359) || PlayerToPoint(1.0,playerid,391.1094,-2088.7976,7.8359))
        {//Fishplace at the bigwheel
            return 1;
        }
        else if(PlayerToPoint(1.0,playerid,383.4157,-2088.7849,7.8359) || PlayerToPoint(1.0,playerid,374.9598,-2088.7979,7.8359))
        {//Fishplace at the bigwheel
            return 1;
        }
        else if(PlayerToPoint(1.0,playerid,369.8107,-2088.7927,7.8359) || PlayerToPoint(1.0,playerid,367.3637,-2088.7925,7.8359))
        {//Fishplace at the bigwheel
            return 1;
        }
        else if(PlayerToPoint(1.0,playerid,362.2244,-2088.7981,7.8359) || PlayerToPoint(1.0,playerid,354.5382,-2088.7979,7.8359))
        {//Fishplace at the bigwheel
            return 1;
        }
    }
    return 0;
}
forward IsAtGreenZone(playerid);
public IsAtGreenZone(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerToPoint(50.0,playerid,1749.4183,-1591.1964,13.5469))
        {//начало
            return 1;
        }
    }
    return 0;
}
public IsAtCookPlace(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerToPoint(3.0,playerid,369.9786,-4.0798,1001.8589))
        {//Cluckin Bell
            return 1;
        }
        else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078))
        {//Burgershot
            return 1;
        }
        else if(PlayerToPoint(3.0,playerid,374.1185,-113.6361,1001.4922) || PlayerToPoint(3.0,playerid,377.7971,-113.7668,1001.4922))
        {//Well Stacked Pizza
            return 1;
        }
    }
    return 0;
}

public IsAtBar(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerToPoint(4.0,playerid,495.7801,-76.0305,998.7578) || PlayerToPoint(4.0,playerid,499.9654,-20.2515,1000.6797))
        {//In grove street bar (with girlfriend), and in Havanna
            return 1;
        }
        else if(PlayerToPoint(4.0,playerid,1215.9480,-13.3519,1000.9219) || PlayerToPoint(10.0,playerid,-2658.9749,1407.4136,906.2734))
        {//PIG Pen
            return 1;
        }
        else if(PlayerToPoint(7.0,playerid,1207.2,-28.4,1000.9) || PlayerToPoint(7.0,playerid,968.6,-47.1,1001.1))
        {//PIG Pen
            return 1;
        }
        else if(PlayerToPoint(7.0,playerid,1122.7,-2036.9,69.8) || PlayerToPoint(7.0,playerid,2539.8184,-1285.2295,1054.6406))
        {//LCN
            return 1;
        }
        else if(PlayerToPoint(7.0,playerid,942.1469,5.5869,1000.9297) || PlayerToPoint(7.0,playerid,942.1469,5.5869,1000.9297))
        {//LCN
            return 1;
        }
        else if(PlayerToPoint(7.0,playerid,-789.0179,500.1655,1371.7422) || PlayerToPoint(7.0,playerid,-789.0179,500.1655,1371.7422))
        {//LCN
            return 1;
        }
        else if(PlayerToPoint(7.0,playerid,-224.7,1404.9,27.7) || PlayerToPoint(7.0,playerid,2536.1,-1321.2,1031.4))
        {//PIG Pen
            return 1;
        }
    }
    return 0;
}

public IsABoat(carid)
{
    new Boats[] = { 472, 473, 493, 484, 430, 454, 453, 452, 446 };
    for(new i = 0; i < sizeof(Boats); i++)
    {
        if(GetVehicleModel(carid) == Boats[i]) return 1;
    }
    return 0;
}


public IsAPlane(carid)
{
    new AirVeh[] = { 592, 577, 511, 512, 593, 520, 553, 476, 519, 460, 513, 548, 425, 417, 487, 488, 497, 563, 447, 469 };
    for(new i = 0; i < sizeof(AirVeh); i++)
    {
        if(GetVehicleModel(carid) == AirVeh[i]) return 1;
    }
    return 0;
}

public IsACopCar(carid)
{
    if(carid >= LSPD[0] && carid <= LSPD[1] || carid >= FBI[0] && carid <= FBI[1] || carid >= ARMY[0] && carid <= ARMY[1])
    {
        return 1;
    }
    return 0;
}

public IsAnAmbulance(carid)
{
    if(carid >= MED[0] && carid <= MED[1])
    {
        return 1;
    }
    return 0;
}

public IsAVelo(carid)
{
    new carmodel = GetVehicleModel(carid);
    if(carmodel == 481 || carmodel == 509 || carmodel == 510)
    {
       return 1;
    }
    return 0;
}

public IsATruck(carid)
{
//    carid=carid-NH;
    if(carid >= PR[0] && carid <= PR[1])
    {
        return 1;
    }
    return 0;
}

//------------------------------------------------------------------------------------------------------

public OnPlayerConnect(playerid)
{

    players ++;
    Wait[playerid] = 11;
    new plname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, plname, sizeof(plname));
//автобусы служебные (работы)
new Text3D:bus1x = Create3DTextLabel("Jackie_Chan\nLS > SF",COLOR_GREEN,30.0,30.0,10.0,30.0,0);
    Attach3DTextLabelToVehicle(bus1x, bus1, 0.0, 0.0, 2.0);
new Text3D:bus2x = Create3DTextLabel("Jhonny rapidul\nLS > SF",COLOR_GREEN,30.0,30.0,10.0,30.0,0);
    Attach3DTextLabelToVehicle(bus2x, bus2, 0.0, 0.0, 1.0);
new Text3D:bus3x = Create3DTextLabel("William chiorul\nLS > SF",COLOR_GREEN,30.0,30.0,10.0,30.0,0);
    Attach3DTextLabelToVehicle(bus3x, bus3, 0.0, 0.0, 1.0);
new Text3D:bus4x = Create3DTextLabel("Big Tonny\nLS > SF",COLOR_GREEN,30.0,30.0,10.0,30.0,0);
    Attach3DTextLabelToVehicle(bus4x, bus4, 0.0, 0.0, 2.0);
//end
//full end cars 3dtexts
    new nameme[256],stringi[256],d,m,y;
    new ololo[3][256];
    getdate(y,m,d);
    GetPlayerName(playerid,nameme,sizeof(nameme));
    new File = ini_openFile("tempbans.ini");
    ini_getString(File,nameme,stringi);
    ini_closeFile(File);
    split(stringi, ololo, ',');
    ddd[playerid] = strval(ololo[0]);
    mmm[playerid] = strval(ololo[1]);
    yyy[playerid] = strval(ololo[2]);
    if(ddd[playerid] != 0 && mmm[playerid] != 0 && yyy[playerid] != 0)
    {
        if(ddd[playerid] > d && mmm[playerid] == m && yyy[playerid] == y)
        {
            format(stringi,sizeof(stringi),"Ready2Play: Ai fost banat pana pe %d/%d/%d",ddd[playerid],mmm[playerid],yyy[playerid]);
            SendClientMessage(playerid,0xFF0606AA,stringi);
            Kick(playerid);
            return 1;
        }
        if(mmm[playerid] > m && yyy[playerid] == y)
        {
            format(stringi,sizeof(stringi),"Ready2Play: Ai fost banat pana pe %d/%d/%d",ddd[playerid],mmm[playerid],yyy[playerid]);
            SendClientMessage(playerid,0xFF0606AA,stringi);
            Kick(playerid);
            return 1;
        }
        if(yyy[playerid] > y)
        {
            format(stringi,sizeof(stringi),"Ready2Play: Ai fost banat pana pe %d/%d/%d",ddd[playerid],mmm[playerid],yyy[playerid]);
            SendClientMessage(playerid,0xFF0606AA,stringi);
            Kick(playerid);
            return 1;
        }
    }
    avot[playerid] = 0;
    mogno[playerid] = 0;
    PlayerInfo[playerid][pMask] = 0;
    PlayerInfo[playerid][pMaskOn] = 0;
    o4ki[playerid] = 0;
    PlayerInfo[playerid][pMaskSkill] = 0;
    PlayerBlinded[playerid] = 0;
    klyap[playerid] = 0;
    afkto[playerid] = 2;
    PlayerSpectateID[playerid] = -1;
    PlayerSpec[playerid] = -1;
//
    SendClientMessage(playerid,COLOR_RED," Va rugam sa respectati regulile serverului");
    SendClientMessage(playerid,COLOR_NEWS," Bine ai venit pe {00FF00}Ready2Play Hard RolePlay !");
    SetPlayerMapIcon(playerid,45,499.8,-1359.7,16.2,45,0);
    SetPVarInt(playerid, "laser", 0);
    SetPVarInt(playerid, "color", 18643);
    SetPVarFloat(playerid,"x1",0.0);
    SetPVarFloat(playerid,"y1",0.0);
    SetPVarFloat(playerid,"z1",0.0);
    gActivePlayers[playerid]++;
    numplayers++;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pMaskOn] == 1)
        {
            ShowPlayerNameTagForPlayer(playerid, i, 0);
        }
        else if(PlayerInfo[i][pMaskOn] == 0)
        {
            ShowPlayerNameTagForPlayer(playerid, i, 1);
        }
    }
    gEngine[playerid] = 0;
    //proskuwka
    adminreadpm[playerid] = 0;
    adminreadr[playerid] = 0;
    adminreadsms[playerid] = 0;
    engineplayer[playerid] = 0;
    buygasammount[playerid] = 0;
    SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0; OnWeapon[playerid] = 0;
    SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0;  ChosenSkin[playerid] = 0;
    SkinPlay[playerid] = 0; rmoney[playerid] = -1; rid[playerid] = -1; rpid[playerid] = -1;
    GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;
    ApprovedLawyer[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0;
    KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
    CP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1;
    CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
    RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;
    Clother[playerid] = 0; NClother[playerid] = 0;
    STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0;
    RepairOffer[playerid] = 999; /*OffAlarmOffer[playerid] = 999; OffAlarmPrice[playerid] = 0;*/ RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
    /*AddAlarmOffer[playerid] = 999; AddAlarmPrice[playerid] = 0;*/ TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
    RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
    DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
    DrugPrice[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999;
    DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0;
    JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0;
    WantedPoints[playerid] = 0; GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0;
    OnDuty[playerid] = 0; /*SWL[playerid] = 0; SKL[playerid] = 0;*/ WantedLevel[playerid] = 0; TestFishes[playerid] = 0; predlogid[playerid] = -1;
    BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0;
    SafeTime[playerid] = 60; PlayerTied[playerid] = 0; PlayerBoxing[playerid] = 0;
    FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0;
    Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999;
    Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
    Unspec[playerid][sLocal] = 255; FishCount[playerid] = 0; MedicCallTime[playerid] = 0;
    WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0;
    PaperOffer[playerid] = 999; ConsumingMoney[playerid] = 0; TransportCost[playerid] = 0;
    gLastCar[playerid] = 0; FirstSpawn[playerid] = 0; TransportMoney[playerid] = 0;
    gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
    gSpeedo[playerid] = 0; gGas[playerid] = 1; BusCallTime[playerid] = 0;
    PlayerInfo[playerid][pReport] = 0; MechanicCallTime[playerid] = 0;
    gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0;
    gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
    PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
    StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
    MatsHolding[playerid] = 0; TutTime[playerid] = 0; TransportTime[playerid] = 0;
    gPlayerMission[playerid] = 0;  BusAccepted[playerid] = 999;
    PlayerInfo[playerid][pCash] = dollah; NoFuel[playerid] = 0; zirit[playerid] = 0;
    HireCar[playerid] = 299; PlayersChannel[playerid] = 999; TransportValue[playerid] = 0;
    TransportDriver[playerid] = 999; TransportDuty[playerid] = 0;
    Locator[playerid] = 0; PlayerOnMission[playerid] = 0; MissionCheckpoint[playerid] = 0;
    WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0;
    Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
    ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
    GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
5503-5688:
pawn Код:
GivePlayerMoney(i, Jackpot);
                }
                else
                {
                    SendClientMessage(i, COLOR_LIGHTBLUE, "* Numarul tau nu este castigator.");
                }
            }
            PlayerInfo[i][pLottoNr] = 0;
        }
    }
    if(JackpotFallen)
    {
        new rand = random(125000); rand += 15789;
        Jackpot = rand;
        SaveStuff();
        format(string, sizeof(string), "Stiri loterie: New Jackpot $%d.", Jackpot);
        OOCOff(COLOR_WHITE, string);
    }
    else
    {
        new rand = random(15000); rand += 2158;
        Jackpot += rand;
        SaveStuff();
        format(string, sizeof(string), "Stiri loterie: Jackpot ridicat pana la $%d.", Jackpot);
        OOCOff(COLOR_WHITE, string);
    }
    return 1;
}

public DelP(playerid)
{

    return 1;
}
//------------------------------------------------------------------------------------------------------
public OnPlayerDisconnect(playerid, reason)
{
    PlayerInJob[playerid] = 0;
    Meshok[playerid] = 0;
    Meshki[playerid] = 0;
    Oldskin2[playerid] = 0;
    gActivePlayers[playerid]--;
    numplayers--;
//  new str[256];
    TextDrawHideForPlayer(playerid, InfoTextDraw);
    gCarLock[HireCar[playerid]] = 1;
    PlayerInfo[playerid][pAdjustable] = 1;
    OnPlayerUpdate_GF(playerid);
    Clother[playerid] = 0;
    NClother[playerid] = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
           
             if(BusAccepted[i] < 999)
            {
                if(BusAccepted[i] == playerid)
                {
                    BusAccepted[i] = 999;
                    GameTextForPlayer(i, "~w~Bus Caller~n~~r~Left the game", 5000, 1);
                    BusCallTime[i] = 0;
                    DisablePlayerCheckpoint(i);
                }
            }
        }
    }
    if(GettingCK[playerid] < 999)
    {
        if(IsPlayerConnected(GettingCK[playerid]))
        {
            SendClientMessage(GettingCK[playerid], COLOR_YELLOW, "* Personajul tau a lasat serverul.");
            OnCK[GettingCK[playerid]] = 999;
        }
    }
    if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
    {
        if(IsPlayerConnected(TransportDriver[playerid]))
        {
            new string[64];
            TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
            TransportTime[TransportDriver[playerid]] = 0;
            TransportCost[TransportDriver[playerid]] = 0;
            format(string, sizeof(string), "~w~Passenger left~n~~g~Earned $%d",TransportCost[playerid]);
            GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
        }
    }
    if(GotHit[playerid] > 0)
    {
        if(GetChased[playerid] < 999)
        {
            if(IsPlayerConnected(GetChased[playerid]))
            {
                SendClientMessage(GetChased[playerid], COLOR_YELLOW, "* Victima ta a iesit de pe server!");
                GoChase[GetChased[playerid]] = 999;
            }
        }
    }
    if(PlayerPaintballing[playerid] != 0)
    {
        PaintballPlayers --;
    }
    if(PlayerKarting[playerid] > 0 && PlayerInKart[playerid] > 0)
    {
        KartingPlayers --;
    }
    if(PlayersChannel[playerid] < 999)
    {
        IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
    }
    if(HireCar[playerid] != 299)
    {
        gLastDriver[HireCar[playerid]] = 300;
        gCarLock[HireCar[playerid]] = 0;
        UnLockCar(HireCar[playerid]);
    }
    if (gLastCar[playerid] > 0)
    {
        gLastDriver[gLastCar[playerid]] = 300;
        if(PlayerInfo[playerid][pPhousekey] != gLastCar[playerid]-1)
        {
            gCarLock[gLastCar[playerid]] = 0;
            UnLockCar(gLastCar[playerid]);
        }
    }
    if(PlayerBoxing[playerid] > 0)
    {
        if(Boxer1 == playerid)
        {
            if(IsPlayerConnected(Boxer2))
            {
                PlayerBoxing[Boxer2] = 0;
                SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
                SetPlayerInterior(Boxer2, 5);
                GameTextForPlayer(Boxer2, "~r~Match interupted", 5000, 1);
            }
        }
        else if(Boxer2 == playerid)
        {
            if(IsPlayerConnected(Boxer1))
            {
                PlayerBoxing[Boxer1] = 0;
                SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186);
                SetPlayerInterior(Boxer1, 5);
                GameTextForPlayer(Boxer1, "~r~Match interupted", 5000, 1);
            }
        }
        InRing = 0;
        RoundStarted = 0;
        Boxer1 = 255;
        Boxer2 = 255;
        TBoxer = 255;
    }
    else if(TransportDuty[playerid] == 2)
    {
        BusDrivers -= 1;
    }
    if(PlayerInfo[playerid][pJob] == 11)
    {
        if(JobDuty[playerid] == 1) { Medics -= 1; }
    }
    else if(PlayerInfo[playerid][pJob] == 7)
    {
        if(JobDuty[playerid] == 1) { Mechanics -= 1; }
    }
    PlayerInfo[playerid][pAdmin] = 0;
}

public SetPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))return 1;
    if(IsPlayerConnected(playerid))
    {
        afkto[playerid] = 0;
        ServerGivePlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]);
        if(PlayerInfo[playerid][pTut] == 0)
        {
            SetPlayerCameraPos(playerid,-1789.275634,996.532592,141.859664);
            SetPlayerCameraLookAt(playerid,-1789.296752,995.533325,141.827224);
            gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
            TogglePlayerControllable(playerid, 0);
            SetPlayerInterior(playerid,0);
            new listitems[] = "Barbat | Male\nFemeie | Female";
            ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Alege sexul:",listitems,"Alege","Renunta");
            return 0;
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)