Problems
#1

I added myself:
pawn Код:
//==================[Deagle event]===========================//
if(strcmp(cmd, "/startdevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[DeagleEventEnabled]=1;
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Event Deagle activat de %s ! {FFFFFF}(/joindevent) ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;


     }

if(strcmp(cmd, "/closedevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[DeagleEventEnabled]=0;
            SetTimer(#UnfreezePlayers, (5 * 1000), false);
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Event Deagle dezactivat de adminul {FFFFFF} %s ! ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }


if(strcmp(cmd, "/joindevent", true) == 0)
    {

    if(EventInfo[DeagleEventEnabled] == 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[SERVER]: Acest event nu este activ!");
     return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa fii in nici o masina pentru a putea folosi comanda!");
     return 1;
    }
    if(WantedLevel[playerid] > 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa ai wanted pentru a folosi comanda !");
     return 1;
    }
    new Random = random(30);
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    ResetPlayerWeapons(playerid);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    SetPlayerInterior(playerid, 1);
    TogglePlayerControllable(playerid, false);
    GivePlayerWeapon(playerid, 24, 999);
    SetPlayerArmour(playerid, 100);
    SendClientMessage(playerid, COLOR_WHITE, "Bafta la eventul de deagle !");
    return 1;
    }

//==================[MiniGun event]===========================//
if(strcmp(cmd, "/startmgevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[MinigunEventEnabled]=1;
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Event Minigun activat de %s ! {FFFFFF}(/joinmgevent) ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;


     }

if(strcmp(cmd, "/closemgevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[MinigunEventEnabled]=0;
            SetTimer(#UnfreezePlayers, (5 * 1000), false);
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Event Minigun dezactivat de adminul {FFFFFF} %s ! ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }


if(strcmp(cmd, "/joinmgevent", true) == 0)
    {
    if(EventInfo[MinigunEventEnabled] == 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[SERVER]: Acest event nu este activ!");
     return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa fii in nici o masina pentru a putea folosi comanda!");
     return 1;
    }
    if(WantedLevel[playerid] > 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa ai wanted pentru a folosi comanda !");
     return 1;
    }
    new Random = random(30);
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    ResetPlayerWeapons(playerid);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    SetPlayerInterior(playerid, 1);
    TogglePlayerControllable(playerid, false);
    GivePlayerWeapon(playerid, 38, 9999);
    SetPlayerArmour(playerid, 100);
    SendClientMessage(playerid, COLOR_WHITE, "Bafta la eventul de Minigun !");
    return 1;
    }



//==================[Molotov Cocktail event]===========================//
if(strcmp(cmd, "/startmcevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[MolotovEventEnabled]=1;
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Event Molotov Cocktail activat de %s ! {FFFFFF}(/joinmcevent) ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }

if(strcmp(cmd, "/closemcevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[MolotovEventEnabled]=0;
            SetTimer(#UnfreezePlayers, (5 * 1000), false);
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Event Molotov Cocktail de adminul {FFFFFF} %s ! ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }


if(strcmp(cmd, "/joinmcevent", true) == 0)
    {
    if(EventInfo[MolotovEventEnabled] == 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[SERVER]: Acest event nu este activ!");
     return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa fii in nici o masina pentru a putea folosi comanda!");
     return 1;
    }
    if(WantedLevel[playerid] > 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa ai wanted pentru a folosi comanda !");
     return 1;
    }
    new Random = random(30);
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    ResetPlayerWeapons(playerid);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    SetPlayerInterior(playerid, 1);
    TogglePlayerControllable(playerid, false);
    GivePlayerWeapon(playerid, 18, 999);
    SetPlayerArmour(playerid, 100);
    SendClientMessage(playerid, COLOR_WHITE, "Bafta la eventul cu Molotov !");
    return 1;
     }

     //==================[Grenade event]===========================//
if(strcmp(cmd, "/startgevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[GrenadeEventEnabled]=1;
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Grenade event activat de adminul %s ! {FFFFFF}(/joingevent) ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }

if(strcmp(cmd, "/closegevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[GrenadeEventEnabled]=0;
            SetTimer(#UnfreezePlayers, (5 * 1000), false);
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Grenade event dezactivat de adminul {FFFFFF} %s ! ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }


if(strcmp(cmd, "/joingevent", true) == 0)
    {

    if(EventInfo[GrenadeEventEnabled] == 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[SERVER]: Acest event nu este activ!");
     return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa fii in nici o masina pentru a putea folosi comanda!");
     return 1;
    }
    if(WantedLevel[playerid] > 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa ai wanted pentru a folosi comanda !");
     return 1;
    }
    new Random = random(30);
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    ResetPlayerWeapons(playerid);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    SetPlayerInterior(playerid, 1);
    TogglePlayerControllable(playerid, false);
    GivePlayerWeapon(playerid, 16, 999);
    SetPlayerArmour(playerid, 100);
    SendClientMessage(playerid, COLOR_WHITE, "Bafta la eventul cu Grenade !");
    return 1;
     }
//===================[DILDO Event]=================================//
    if(strcmp(cmd, "/startdildo", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pAdmin] >= 1 && (pdevent == 0))
            {
                pdevent = 1;
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "[MINI EVENT]: Dildo Event activat de adminul %s ! {FFFFFF}(/joindildo)", sendername);
                SendClientMessageToAll(0x0080FFC8,string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
            }
        }
        return 1;
       }
       if(strcmp(cmd, "/closedildo", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pAdmin] >= 1 && (pdevent == 1))
            {
                pdevent = 0;
                SetTimer(#UnfreezePlayers, (5 * 1000), false);
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "[MINI EVENT]: Dildo Event dezactivat de adminul {FFFFFF} %s ! ", sendername);
                SendClientMessageToAll(0x0080FFC8,string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
            }
        }
        return 1;
       }

    if(strcmp(cmd, "/joindildo", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (pdevent == 1)
            {
                if (GetPlayerState(playerid) == 2)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "   Get out of your vehicle, and try again!");
                    return 1;
                }
                if(PlayerInfo[playerid][pJailed] == 1)
                {
                    SendClientMessage(playerid,COLOR_GREY,"   You can`t use this command, you are in jail !");
                    return 1;
                }
                if(WantedLevel[playerid] >= 1)
                {
                    SendClientMessage(playerid,COLOR_GREY,"   You can`t use this command, you are currently Wanted !");
                    return 1;
                }
                if(PlayerTied[playerid] > 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "  you can`t use this command because you are tied!");
                    return 1;
                }
                /*else
                {
                    SetPlayerPos(playerid, 1416.107000,0.268620,1000.926000);
                }*/

                new Random = random(30);
                SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
                SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "{FFFFFF}Felicitari{00CC00} %s{FFFFFF} ai ajuns cu succes la {00CC00}Purple dildo Event Arena!!", sendername);
                SendClientMessage(playerid, COLOR_GREEN, string);
                TogglePlayerControllable(playerid, 0);
                SetPlayerInterior(playerid,1);
                PlayerInfo[playerid][pInt] = 1;
                SetPlayerVirtualWorld(playerid,0);
                ResetPlayerWeapons(playerid);
                GivePlayerWeapon(playerid, 10, 1);
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 0);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   The Purple dildo Event is not activated at this time!");
            }
        }
        return 1;
    }



//==================[Baseball Bat event]===========================//
if(strcmp(cmd, "/startbbevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[BaseballEventEnabled]=1;
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Baseball Bat event activat de adminul %s ! {FFFFFF}(/joinbbevent) ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }

if(strcmp(cmd, "/closebbevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[BaseballEventEnabled]=0;
            SetTimer(#UnfreezePlayers, (5 * 1000), false);
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Baseball Bat event dezactivat de adminul {FFFFFF} %s ! ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }


if(strcmp(cmd, "/joinbbevent", true) == 0)
    {

    if(EventInfo[BaseballEventEnabled] == 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[SERVER]: Acest event nu este activ!");
     return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa fii in nici o masina pentru a putea folosi comanda!");
     return 1;
    }
    if(WantedLevel[playerid] > 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa ai wanted pentru a folosi comanda !");
     return 1;
    }
    new Random = random(30);
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    ResetPlayerWeapons(playerid);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    SetPlayerInterior(playerid, 1);
    TogglePlayerControllable(playerid, false);
    GivePlayerWeapon(playerid, 5, 999);
    SetPlayerArmour(playerid, 100);
    SendClientMessage(playerid, COLOR_GREY, "Bafta la eventul Baseball bat !");
    return 1;
     }
//==================[SS event]===========================//
if(strcmp(cmd, "/startssevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[SMGEventEnabled]=1;
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Sawnoff Shotgun event activat de adminul %s ! {FFFFFF}(/joinssevent) ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;

     }

if(strcmp(cmd, "/closessevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[SMGEventEnabled]=0;
            SetTimer(#UnfreezePlayers, (5 * 1000), false);
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Sawnoff Shotgun event dezactivat de adminul {FFFFFF} %s ! ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }


if(strcmp(cmd, "/joinssevent", true) == 0)
    {

    if(EventInfo[SMGEventEnabled] == 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[SERVER]: Acest event nu este activ!");
     return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa fii in nici o masina pentru a putea folosi comanda!");
     return 1;
    }
    if(WantedLevel[playerid] > 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa ai wanted pentru a folosi comanda !");
     return 1;
    }
    new Random = random(30);
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    ResetPlayerWeapons(playerid);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    SetPlayerInterior(playerid, 1);
    TogglePlayerControllable(playerid, false);
    GivePlayerWeapon(playerid, 26, 999);
    SetPlayerArmour(playerid, 100);
    SendClientMessage(playerid, COLOR_WHITE, "Bafta la eventul cu Sawnoff Shotgun !");
    return 1;
     }

//==================[Combat ShotGun event]===========================//
if(strcmp(cmd, "/startcsevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[ShotgunEventEnabled]=1;
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Combat Shotgun event activat de adminul %s ! {FFFFFF}(/joincsevent) ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }

if(strcmp(cmd, "/closecsevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[ShotgunEventEnabled]=0;
            SetTimer(#UnfreezePlayers, (5 * 1000), false);
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Combat Shotgun event dezactivat de adminul {FFFFFF} %s ! ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }


if(strcmp(cmd, "/joincsevent", true) == 0)
    {

    if(EventInfo[ShotgunEventEnabled] == 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[SERVER]: Acest event nu este activ!");
     return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa fii in nici o masina pentru a putea folosi comanda!");
     return 1;
    }
    if(WantedLevel[playerid] > 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa ai wanted pentru a folosi comanda !");
     return 1;
    }
    new Random = random(30);
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    ResetPlayerWeapons(playerid);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    SetPlayerInterior(playerid, 1);
    TogglePlayerControllable(playerid, false);
    GivePlayerWeapon(playerid, 27, 999);
    SetPlayerArmour(playerid, 100);
    SendClientMessage(playerid, COLOR_WHITE, "Bafta la eventul cu Shotgun !");
    return 1;
     }

if(strcmp(cmd, "/startchevent", true) == 0)
    {
            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[ChEventEnabled]=1;
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Chainsaw event activat de adminul %s ! {FFFFFF}(/joinchevent) ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }

if(strcmp(cmd, "/closechevent", true) == 0)
    {

            new Name[24];
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            EventInfo[ChEventEnabled]=0;
            SetTimer(#UnfreezePlayers, (5 * 1000), false);
            GetPlayerName(playerid, Name, sizeof(Name));
            format(string, 256, "[MINI EVENT]: Chainsaw event dezactivat de adminul {FFFFFF} %s ! ", Name);
            SendClientMessageToAll(0x0080C0C8, string);
            }
            else
            SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command. ");
            return 1;
     }


if(strcmp(cmd, "/joinchevent", true) == 0)
    {

    if(EventInfo[ChEventEnabled] == 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[SERVER]: Acest event nu este activ!");
     return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa fii in nici o masina pentru a putea folosi comanda!");
     return 1;
    }
    if(WantedLevel[playerid] > 0)
    {
     SendClientMessage(playerid, COLOR_GREY, "Nu trebuie sa ai wanted pentru a folosi comanda !");
     return 1;
    }
    new Random = random(30);
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    ResetPlayerWeapons(playerid);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    SetPlayerInterior(playerid, 1);
    TogglePlayerControllable(playerid, false);
    GivePlayerWeapon(playerid, 9, 1);
    SetPlayerArmour(playerid, 100);
    SendClientMessage(playerid, COLOR_WHITE, "Bafta la eventul cu Chainsaw !");
    return 1;
    }
    if(strcmp(cmd, "/startctvst", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pAdmin] >= 1 && (ctvstevent == 0))
            {
                ctvstevent = 1;
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "[MINI EVENT]: CT vs Tero event has been activated by %s! {FFFFFF}/jointero {0080FF}or {FFFFFF}/joinct", sendername);
          SendClientMessageToAll(0x0080FFC8,string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
            }
        }
        return 1;
       }
    if(strcmp(cmd, "/closectvst", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pAdmin] >= 1 && (ctvstevent == 1))
            {
                ctvstevent = 0;
                SetTimer(#UnfreezePlayers, (5 * 1000), false);
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "[MINI EVENT]: CT vs Tero event has been disabled by {FFFFFF}%s!", sendername);
          SendClientMessageToAll(0x0080FFC8,string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
            }
        }
        return 1;
       }
    if(strcmp(cmd, "/jointero", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (ctvstevent == 1)
            {
                if (GetPlayerState(playerid) == 2)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "   Get out of your vehicle, and try again!");
                    return 1;
                }
                if(PlayerInfo[playerid][pJailed] == 1)
                {
                    SendClientMessage(playerid,COLOR_GREY,"   You can`t use this command, you are in jail !");
                    return 1;
                }
                if(WantedLevel[playerid] >= 1)
                {
                    SendClientMessage(playerid,COLOR_GREY,"   You can`t use this command, you are currently Wanted !");
                    return 1;
                }
                if(PlayerTied[playerid] > 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "  you can`t use this command because you are tied!");
                    return 1;
                }
                else
                {
                    SetPlayerPos(playerid, 1418.3768,2773.9817,10.8203);
                }
                PlayerInfo[playerid][pETEAM] = 1;
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "{FFFFFF}Felicitari{E90000} %s{FFFFFF} ai intrat in  {E90000}Tero Team!!", sendername);
                SendClientMessage(playerid, COLOR_GREEN, string);
                ResetPlayerWeapons(playerid);
                GivePlayerWeapon(playerid, 24, 999);
                GivePlayerWeapon(playerid, 4, 1);
                GivePlayerWeapon(playerid, 29, 999);
                GivePlayerWeapon(playerid, 30, 999);
                GivePlayerWeapon(playerid, 25, 999);
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 100);
                SetPlayerSkin(playerid, 124);
                TogglePlayerControllable(playerid, 0);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   The CTvsTERO event is not activated at this time!");
            }
        }
        return 1;
    }
    if(strcmp(cmd, "/joinct", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (ctvstevent == 1)
            {
                if (GetPlayerState(playerid) == 2)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "   Get out of your vehicle, and try again!");
                    return 1;
                }
                if(PlayerInfo[playerid][pJailed] == 1)
                {
                    SendClientMessage(playerid,COLOR_GREY,"   You can`t use this command, you are in jail !");
                    return 1;
                }
                if(WantedLevel[playerid] >= 1)
                {
                    SendClientMessage(playerid,COLOR_GREY,"   You can`t use this command, you are currently Wanted !");
                    return 1;
                }
                if(PlayerTied[playerid] > 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "  you can`t use this command because you are tied!");
                    return 1;
                }
                else
                {
                    SetPlayerPos(playerid, 1117.2654,2789.6062,10.8120);
                }
                PlayerInfo[playerid][pETEAM] = 2;
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "{FFFFFF}Felicitari{E90000} %s{FFFFFF} ai intrat in {E90000}CT TEAM!!", sendername);
                SendClientMessage(playerid, COLOR_GREEN, string);
                ResetPlayerWeapons(playerid);
                GivePlayerWeapon(playerid, 24, 999);
                GivePlayerWeapon(playerid, 24, 999);
                GivePlayerWeapon(playerid, 4, 1);
                GivePlayerWeapon(playerid, 29, 999);
                GivePlayerWeapon(playerid, 31, 999);
                GivePlayerWeapon(playerid, 25, 999);
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 100);
                SetPlayerSkin(playerid, 287);
                TogglePlayerControllable(playerid, 0);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   The CTvsTERO event is not activated at this time!");
            }
        }
        return 1;
    }
    if (strcmp(cmd, "/wintero", true) == 0)
    {
      for(new i = 0; i <= MAX_PLAYERS; i++)
      {
           if(IsPlayerConnected(i) && PlayerInfo[i][pETEAM] == 1)
           {
              GivePlayerMoney(i, 50000); // premiu 15k
              SpawnPlayer(i);
              SetPlayerArmour( i, 0 );
              SendClientMessage(i, COLOR_GRAD1, "** Good job,all counter-terrorist have been exterminated,you've recived {FF9900}50.000$.");
           }
      }
      return 1;
    }
    if (strcmp(cmd, "/winct", true) == 0)
    {
      for(new i = 0; i <= MAX_PLAYERS; i++)
      {
           if(IsPlayerConnected(i) && PlayerInfo[i][pETEAM] == 2)
           {
              GivePlayerMoney(i, 50000); // premiu 15k
              SpawnPlayer(i);
              SetPlayerArmour( i, 0 );
              SendClientMessage(i, COLOR_GRAD1, "** Good job,all terrorists have been exterminated,you've recived {FF9900}50.000$.");
           }
      }
      return 1;
    }
    if(strcmp(cmd, "/lbsarena", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
                SetPlayerPos(playerid, 3044.2495,377.2570,14.1151);
                SendClientMessage(playerid, COLOR_GRAD1, "   You have been teleported to the LBS Arena!");
                SetPlayerInterior(playerid,0);
                PlayerInfo[playerid][pInt] = 0;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda!");
            }
        }
        return 1;
    }
 if(strcmp(cmd, "/startlbs", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pAdmin] >= 1 && (lbsevent == 0))
            {
                lbsevent = 1;
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "[MINI EVENT]: Last Boat Standing event has been activated by %s! {FFFFFF}/joinlbs", sendername);
                SendClientMessageToAll(0x0080FFC8,string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
            }
        }
        return 1;
       }
 if(strcmp(cmd, "/closelbs", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pAdmin] >= 1 && (lbsevent == 1))
            {
                lbsevent = 0;
                SetTimer(#UnfreezePlayers, (5 * 1000), false);
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "[MINI EVENT]: Last Boat Event has been disabled by {FFFFFF}%s!", sendername);
                SendClientMessageToAll(0x0080FFC8,string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
            }
        }
        return 1;
       }
    if(strcmp(cmd, "/joinlbs", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (lbsevent == 1)
            {
                if (GetPlayerState(playerid) == 2)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "   Get out of your vehicle, and try again!");
                    return 1;
                }
                if(PlayerInfo[playerid][pJailed] == 1)
                {
                    SendClientMessage(playerid,COLOR_GREY,"   You can`t use this command, you are in jail !");
                    return 1;
                }
                if(WantedLevel[playerid] >= 1)
                {
                    SendClientMessage(playerid,COLOR_GREY,"   You can`t use this command, you are currently Wanted !");
                    return 1;
                }
                if(PlayerTied[playerid] > 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "  you can`t use this command because you are tied!");
                    return 1;
                }
                /*else
                {
                    SetPlayerPos(playerid, 1416.107000,0.268620,1000.926000);
                }*/

                giveplayerid = ReturnUser(tmp);
                GetPlayerName(playerid, sendername, sizeof(sendername));
                SetPlayerPos(playerid, 3045.6379,390.2311,-0.7117);
                SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF} Urca-te intr-o barca, si asteapta sa se dea {0099FF}startul!!");
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "Succes la eventul LBS !", sendername);
                SendClientMessage(playerid, COLOR_GREEN, string);
                SetPlayerInterior(playerid,0);
                PlayerInfo[playerid][pInt] = 0;
                SetPlayerVirtualWorld(playerid,0);
                ResetPlayerWeapons(playerid);
                SetPlayerHealth(playerid, 100);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   The LBS Event is not activated at this time!");
            }
        }
        return 1;
    }
    if(strcmp(cmd, "/winlbs", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}Foloseste:{FFFFFF} /winlbs [playerid/PartOfName]");
                return 1;
            }
            new playa;
            playa = ReturnUser(tmp);
            giveplayerid = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            if (PlayerInfo[playerid][pAdmin] >= 1337)
            {
                if(IsPlayerConnected(playa))
                {
                    SendClientMessageToAll(COLOR_LIGHTGREEN,"Eventul LBS Event s-a incheiat.");
                    format(string,sizeof(string), " {0099FF}%s {FFFFFF}a castigat {0099FF}LBS event, {FFFFFF}si a primit {0099FF}50.000$",PlayerName(giveplayerid));
                    SendClientMessageToAll(COLOR_BLUE, string);
                    GivePlayerMoney(giveplayerid,50000);
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Nu ai dreptul de a utiliza aceasta comanda!");
            }
        }
        return 1;
    }

    if(strcmp(cmd, "/lcsarena", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 3)
            {
                SetPlayerPos(playerid, 1334.9865,2133.9487,11.0156);
                SendClientMessage(playerid, COLOR_GREY, "You have been teleported to the LCS Event Arena!");
                SetPlayerInterior(playerid,0);
                PlayerInfo[playerid][pInt] = 0;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command. ");
            }
        }
        return 1;
    }
        if(strcmp(cmd, "/startlcs", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pAdmin] >= 1 && (lcsevent == 0))
            {
                lcsevent = 1;
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "[MINI EVENT]: LCS Event activat de adminul %s ! {FFFFFF}/joinlcs ", sendername);
          SendClientMessageToAll(0x0080FFC8,string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
            }
        }
        return 1;
       }
    if(strcmp(cmd, "/closelcs", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pAdmin] >= 1 && (lcsevent == 1))
            {
                lcsevent = 0;
                SetTimer(#UnfreezePlayers, (5 * 1000), false);
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "[MINI EVENT]: LCS Event dezactivat de adminul {FFFFFF} %s ! ", sendername);
          SendClientMessageToAll(0x0080FFC8,string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
            }
        }
        return 1;
       }
    if(strcmp(cmd, "/joinlcs", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (lcsevent == 1)
            {
                if (GetPlayerState(playerid) == 2)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, " Get out of your vehicle, and try again!");
                    return 1;
                }
                if(PlayerInfo[playerid][pJailed] == 1)
                {
                    SendClientMessage(playerid,COLOR_GREY,"  You can`t use this command, you are in jail !");
                    return 1;
                }
                if(WantedLevel[playerid] >= 1)
                {
                    SendClientMessage(playerid,COLOR_GREY,"  You can`t use this command, you are currently Wanted !");
                    return 1;
                }
                if(PlayerTied[playerid] > 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, " You can`t use this command because you are tied!");
                    return 1;
                }
                /*else
                {
                    SetPlayerPos(playerid, 1416.107000,0.268620,1000.926000);
                }*/

                giveplayerid = ReturnUser(tmp);
                GetPlayerName(playerid, sendername, sizeof(sendername));
                SetPlayerPos(playerid, 1334.9865,2133.9487,11.0156);
                SendClientMessage(playerid, COLOR_GRAD1, "Urca-te intr-o masina si asteapta sa se dea {0099FF}START!");
                GetPlayerName(playerid, sendername, sizeof(sendername));
                //format(string, sizeof(string), "Felicitari %s, ai ajuns cu succes la L.C.S Event!", sendername);
                //SendClientMessage(playerid, COLOR_GREY, string);
                SetPlayerInterior(playerid,0);
                PlayerInfo[playerid][pInt] = 0;
                SetPlayerVirtualWorld(playerid,0);
                ResetPlayerWeapons(playerid);
                SetPlayerHealth(playerid, 100);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[SERVER]: Acest event nu este activ!");
            }
        }
        return 1;
    }
    if(strcmp(cmd, "/winlcs", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /winlcs [playerid/PartOfName]");
                return 1;
            }
            new playa;
            playa = ReturnUser(tmp);
            giveplayerid = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            if (PlayerInfo[playerid][pAdmin] >= 1337)
            {
                if(IsPlayerConnected(playa))
                {
                    SendClientMessageToAll(COLOR_LIGHTGREEN,"Eventul LCS s-a incheiat!");
                    format(string,sizeof(string), " {0099FF}%s {FFFFFF}a castigat {0099FF}L.C.S event, {FFFFFF}si a primit {0099FF}$50.000!",PlayerName(giveplayerid));
                    SendClientMessageToAll(COLOR_BLUE, string);
                    GivePlayerMoney(giveplayerid,50000);
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use this command. ");
            }
        }
        return 1;
    }
    if(strcmp(cmd, "/eventarena", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
                SetPlayerPos(playerid, 1374.5255,5.6363,1008.1563);
                SendClientMessage(playerid, COLOR_GRAD1, "   You have been teleported to the Event Arena!");
                SetPlayerInterior(playerid,1);
                PlayerInfo[playerid][pInt] = 1;
                SetPlayerVirtualWorld(playerid,0);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda!");
            }
        }
        return 1;
    }
    if(strcmp(cmd, "/winminievent", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /winminievent [playerid/PartOfName]");
                return 1;
            }
            new playa;
            playa = ReturnUser(tmp);
            giveplayerid = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            if (PlayerInfo[playerid][pAdmin] >= 1337)
            {
                if(IsPlayerConnected(playa))
                {
                    SendClientMessageToAll(COLOR_LIGHTGREEN,"Mini-Event-ul s-a incheiat.");
                    format(string,sizeof(string), " {0099FF}%s {FFFFFF}a castigat {0099FF}Mini-Event-ul, {FFFFFF}si a primit {0099FF}50.000$",PlayerName(giveplayerid));
                    SendClientMessageToAll(COLOR_BLUE, string);
                    GivePlayerMoney(giveplayerid,50000);
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Nu ai dreptul de a utiliza aceasta comanda!");
            }
        }
        return 1;
    }



pawn Код:
C:\Documents and Settings\Madalin\Desktop\servermeu\gamemodes\FkZ.pwn(5033) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Documents and Settings\Madalin\Desktop\servermeu\gamemodes\FkZ.pwn(5044) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Documents and Settings\Madalin\Desktop\servermeu\gamemodes\FkZ.pwn(5054) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Documents and Settings\Madalin\Desktop\servermeu\gamemodes\FkZ.pwn(8819) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Documents and Settings\Madalin\Desktop\servermeu\gamemodes\FkZ.pwn(8841) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Documents and Settings\Madalin\Desktop\servermeu\gamemodes\FkZ.pwn(19073) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Documents and Settings\Madalin\Desktop\servermeu\gamemodes\FkZ.pwn(19529) : error 017: undefined symbol "RandomSpawns"
C:\Documents and Settings\Madalin\Desktop\servermeu\gamemodes\FkZ.pwn(19529) : warning 215: expression has no effect
C:\Documents and Settings\Madalin\Desktop\servermeu\gamemodes\FkZ.pwn(19529) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Madalin\Desktop\servermeu\gamemodes\FkZ.pwn(19529) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Madalin\Desktop\servermeu\gamemodes\FkZ.pwn(19529) : fatal error 107: too many error messages on one line

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


4 Errors.

Help me , please ?
Reply
#2

change Playername variable name to something else
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)