Zombie cant not use
#8

Quote:
Originally Posted by Kitten
Посмотреть сообщение
stevens u fixed 1 of the checkpoints but for the random weapons one still zombies get random weapons

pawn Код:
if(gTeam[playerid] == TEAM_HUMAN || TEAM_HUMAN2)
    {
        if(checkpointid == RandomWeaponCP)
        {
            new randwep = random(9);
            switch(randwep)
            {
                case 0: {GivePlayerWeapon(playerid,AK,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~AK47 ASSUALT RIFLE",6000,4);}
                case 1: {GivePlayerWeapon(playerid,DEAGLE,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~DEAGLE PISTOL",6000,4);}
                case 2: {GivePlayerWeapon(playerid,TEC9,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~TEC 9",6000,4);}
                case 3: {GivePlayerWeapon(playerid,M4,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~M4 ASSUALT RIFLE",6000,4);}
                case 4: {GivePlayerWeapon(playerid,SMG,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~SMG",6000,4);}
                case 5: {GivePlayerWeapon(playerid,CHAINSAW,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~CHAINSAW",6000,4);}
                case 6: {GivePlayerWeapon(playerid,NOWEAPON,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~UNARMED",6000,4);}
                case 7: {GivePlayerWeapon(playerid,SMG2,500); GameTextForPlayer(playerid,"~r~ YOU GOT A RANDOM WEAPON OF ~n~~w~ SMG 2",6000,4);}
            }
        }
        else if(gTeam[playerid] == TEAM_ZOMBIE || TEAM_ZOMBIE2)
        {
            SendClientMessage(playerid,COLOR_GREEN,"ERROR: You are a zombie you can not get a random weapon");
        }
        return 0;
    }
Return 0; on both of them. So on both of the else if(code here) and stuff return 0; and both. And try that
Reply


Messages In This Thread
Zombie cant not use - by Kitten - 14.11.2010, 19:58
Re: Zombie cant not use - by GaGlets(R) - 14.11.2010, 20:01
Re: Zombie cant not use - by Steven82 - 14.11.2010, 20:04
Re: Zombie cant not use - by Kitten - 14.11.2010, 20:04
Re: Zombie cant not use - by Steven82 - 14.11.2010, 20:07
Re: Zombie cant not use - by Mauzen - 14.11.2010, 20:09
Re: Zombie cant not use - by Kitten - 14.11.2010, 20:09
Re: Zombie cant not use - by Steven82 - 14.11.2010, 20:10
Re: Zombie cant not use - by Kitten - 14.11.2010, 20:11
Re: Zombie cant not use - by Mauzen - 14.11.2010, 20:12

Forum Jump:


Users browsing this thread: