Little Help
#1

How to create the classes like in CoD games of Multiplayer.IF someone know tell me please
Reply
#2

IF you mean wepon clases heres the easyest way in minimal detail.

1. Create a dialog.
2. Save custom classes to file and load them in the dialog to the player.

EXAMPLE:
pawn Код:
case DIALOG_CLASSES:
{
        if(response)
        {
                 switch(listtem)
                 {
                      case 0:
                      {
                                  GivePlayerWeapon(); Inside put this. //PlayerInfo[playerid][Class1.Weapon1]; repeast until class 1 is loaded ans so on with the others.
                        case 1:
                         case 2:
                       }
          }
Sorry for it not being neat but I made it in the reply box.
Reply
#3

Quote:
Originally Posted by IceCube!
Посмотреть сообщение
IF you mean wepon clases heres the easyest way in minimal detail.

1. Create a dialog.
2. Save custom classes to file and load them in the dialog to the player.

EXAMPLE:
pawn Код:
case DIALOG_CLASSES:
{
        if(response)
        {
                 switch(listtem)
                 {
                      case 0:
                      {
                                  GivePlayerWeapon(); Inside put this. //PlayerInfo[playerid][Class1.Weapon1]; repeast until class 1 is loaded ans so on with the others.
                        case 1:
                         case 2:
                       }
          }
Sorry for it not being neat but I made it in the reply box.
.........I dont know what you mean with this i dont need to make system only classes to choose like are Gunner,Mechanic and same!....
Reply
#4

Then dont make it customisable (Sorry for speliing). DO the same thing but include the weapon and the amount of ammo. YOu can find the weapon ID's here.

https://sampwiki.blast.hk/wiki/Weapons

And the line would be for example GivePLayerWeapon(26, 1000); Thats a shotgun with 1000 Ammo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)