PDA

View Full Version : Little Help


SpiderWalk
11/01/2012, 10:40 PM
How to create the classes like in CoD games of Multiplayer.IF someone know tell me please

IceCube!
11/01/2012, 10:48 PM
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: 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.

SpiderWalk
11/01/2012, 11:08 PM
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: 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!....

IceCube!
11/01/2012, 11:12 PM
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.

http://wiki.sa-mp.com/wiki/Weapons

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