Little Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Little Help (
/showthread.php?tid=310377)
Little Help -
SpiderWalk - 11.01.2012
How to create the classes like in CoD games of Multiplayer.IF someone know tell me please
Re: Little Help -
IceCube! - 11.01.2012
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.
Re: Little Help -
SpiderWalk - 11.01.2012
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!....
Re: Little Help -
IceCube! - 11.01.2012
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.