GivePlayerWeapon problem
#1

pawn Код:
new Menu:current2;
  current2 = GetPlayerMenu(playerid);
  if(current2 == armory)
  {
    switch(row)
    {
      case 0:{
        GivePlayerWeapon(playerid, 365, 65000);
      }
      case 1:{
        GivePlayerWeapon(playerid, 334, 65000);
      }
      case 2:{
        GivePlayerWeapon(playerid, 348, 65000);
      }
      case 3:{
        GivePlayerWeapon(playerid, 349, 65000);
      }
      case 4:{
        GivePlayerWeapon(playerid, 353, 65000);
      }
      case 5:{
        GivePlayerWeapon(playerid, 358, 65000);
      }
      case 6:{
        GivePlayerWeapon(playerid, 356, 65000);
      }
    }
  }
Menu shows, but you aint getting any weapon.
Reply
#2

https://sampwiki.blast.hk/wiki/Weapons
Look at your ID's and They one's listed there...


FIXED For ya:
pawn Код:
new Menu:current2;
  current2 = GetPlayerMenu(playerid);
  if(current2 == armory)
  {
    switch(row)
    {
      case 0:{
        GivePlayerWeapon(playerid, 41, 65000);
      }
      case 1:{
GivePlayerWeapon(playerid, 3, 65000);
      }
      case 2:{
GivePlayerWeapon(playerid, 24, 65000);
      }
      case 3:{
GivePlayerWeapon(playerid, 25, 65000);
      }
      case 4:{
GivePlayerWeapon(playerid, 26, 65000);
      }
      case 5:{
GivePlayerWeapon(playerid, 34, 65000);
      }
      case 6:{
GivePlayerWeapon(playerid, 31, 65000);
      }
    }
  }
Reply
#3

Don't use model IDs, use normal IDs.
Reply
#4

I fail big time xd
Does anyone know how to do a skinchange? You know so they can select between 6 chars? Using next and done commands?
Reply
#5

pawn Код:
ForceClassSelection(playerid);
Reply
#6

Quote:
Originally Posted by Gozerr
pawn Код:
ForceClassSelection(playerid);
There should only be a limited of skins i.e 445, 142, 545 ( example skins ) < You can navigate them by using next and done >
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)