/drop command help
#1

pawn Код:
if(gunid != 22 && PlayerInfo[playerid][pGun2] != 22)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(346, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 4 && PlayerInfo[playerid][pGun1] != 4)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(335, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 5 && PlayerInfo[playerid][pGun1] != 5)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(336, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 6 && PlayerInfo[playerid][pGun1] != 6)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(337, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 7 && PlayerInfo[playerid][pGun1] != 7)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(338, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 9 && PlayerInfo[playerid][pGun1] != 9)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(341, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 10 && PlayerInfo[playerid][pGun10] != 10)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(321, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 11 && PlayerInfo[playerid][pGun10] != 11)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(320, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 12 && PlayerInfo[playerid][pGun10] != 12)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(319, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 13 && PlayerInfo[playerid][pGun10] != 13)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(318, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 14 && PlayerInfo[playerid][pGun10] != 14)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(325, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 15 && PlayerInfo[playerid][pGun10] != 15)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(326, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 23 && PlayerInfo[playerid][pGun2] != 23)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(347, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 24 && PlayerInfo[playerid][pGun2] != 24)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(348, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 25 && PlayerInfo[playerid][pGun3] != 25)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(349, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 27 && PlayerInfo[playerid][pGun3] != 27)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(350, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 29 && PlayerInfo[playerid][pGun4] != 29)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(353, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 30 && PlayerInfo[playerid][pGun5] != 30)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(355, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 31 && PlayerInfo[playerid][pGun5] != 31)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(356, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                     }
                    if(gunid != 33 && PlayerInfo[playerid][pGun6] != 33)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(357, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 34 && PlayerInfo[playerid][pGun6] != 34)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(358, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
                    if(gunid != 46 && PlayerInfo[playerid][pGun11] != 46)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "You Dont Have This Weapon!");
                    }
                    else
                    {
                        CreateObject(370, wx, wy, wz-0.95, 93.7,120.0,120.0);
                        TakeWeapon(playerid,gunid);
                    }
The Command Works and The Object Is Created But It Spams The Person's Screen With "You Dont Have This Weapon"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)