GivePlayerWeapon problem
#1

I am making a menu for cops to get a weapon,
I have finished and added the GivePlayerWeapon
Although when i go on the server and open up the menu,
And i select one of the weapons, I do not recieve anything,
Can anyone help?

pawn Код:
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == Weaponmenu)
{
  switch(row)
  {
    case 0: //Teargas
    {
            GivePlayerWeapon(playerid, 343, 10);
            GivePlayerWeapon(playerid, 335, 500);
      SendClientMessage(playerid, 0xFFFFFFFF, "You have recieved your weapon with a bonus nitestick");
    }
    case 1: //Silenced 9mm
    {
      GivePlayerWeapon(playerid, 347, 500);
      GivePlayerWeapon(playerid, 335, 500);
      SendClientMessage(playerid, 0xFFFFFFFF, "You have recieved your weapon with a bonus nitestick");
    }
    case 2: //AK47
    {
      GivePlayerWeapon(playerid, 355, 500);
      GivePlayerWeapon(playerid, 335, 500);
      SendClientMessage(playerid, 0xFFFFFFFF, "You have recieved your weapon with a bonus nitestick");
    }
    case 3: //Shotgun
    {
      GivePlayerWeapon(playerid, 349, 500);
      GivePlayerWeapon(playerid, 335, 500);
      SendClientMessage(playerid, 0xFFFFFFFF, "You have recieved your weapon with a bonus nitestick");
    }
    case 4: //Combat Rifle
    {
      GivePlayerWeapon(playerid, 357, 500);
      GivePlayerWeapon(playerid, 335, 500);
      SendClientMessage(playerid, 0xFFFFFFFF, "You have recieved your weapon with a bonus nitestick");
    }
    case 5: //Parachute
    {
      GivePlayerWeapon(playerid, 371, 1);
      GivePlayerWeapon(playerid, 335, 500);
      SendClientMessage(playerid, 0xFFFFFFFF, "You have recieved your weapon with a bonus nitestick");
    }
  }
}
Reply


Messages In This Thread
GivePlayerWeapon problem - by JoeDaDude - 25.05.2009, 23:15
Re: GivePlayerWeapon problem - by Weirdosport - 25.05.2009, 23:35
Re: GivePlayerWeapon problem - by DMSOrg - 26.05.2009, 00:07

Forum Jump:


Users browsing this thread: 2 Guest(s)