Need help! To add player classes and more.
#7

PM Me the GM i'll fix it for you . or i explain how that AddPlayerClass works.

AddPlayerClass( 99,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);


//The ( 99 < Is the skin.
The 469.4590, 2207.5110, 46.5850 < Is the X Y Z You can get the X Y Z With typing /save In the Game.

Its in your gta user files SAMP Saved Locations.

The 115.0000 is the Facingangle, ( Where the player looks at when selecting the skin )

,0,0,0,0,0,0);
Means the weapons 0 is Unarmed its like

Weapon,Ammo,Weapon2,AmmOfWeapon2,Weapon3,AmmoOfWea pon3

You can get the Weapon ids from here : http://weedarr.wikidot.com/gunlist

Ex : If you want to give the player who chooses Skin id 1 a AK with 5000 Ammo it should look like this

AddPlayerClass(X,Y,Z,FacingAngle,30,5000,0,0,0,0);

You have to add that under OnGameModeInit()
{
AddPlayerClass(X,Y,Z,FacingAngle,Wep1,Wep2,etc,);
//AddHereOtherPlayerClasses
return 1;
}

Here i took some AddPlayerClass's out of my GameMode

pawn Код:
public OnGameModeInit()
{
   AddPlayerClass(0,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass(1,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass(2,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 7,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass(  9,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass(10,-470.4734,2207.0278,46.6846,115.0000,0,0,0,0,0,0);
    AddPlayerClass(11,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 12,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 13,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 14,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass(15,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass(16,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 17,-470.4734,2207.0278,46.6846,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 18,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass(19,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass(20,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass(21,-470.4734,2207.0278,46.6846,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 22,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 23,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 24,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 25,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 26,-470.4734,2207.0278,46.6846,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 27,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 28,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 29,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass(30,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass(31,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass(32,-470.4734,2207.0278,46.6846,115.0000,0,0,0,0,0,0);
    AddPlayerClass(33,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass(34,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass(35,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass(36,-470.4734,2207.0278,46.6846,115.0000,0,0,0,0,0,0);
    AddPlayerClass(37,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass(38,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass(39,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass(40,-470.4734,2207.0278,46.6846,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 41,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass(42,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 43,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass(44,-470.4734,2207.0278,46.6846,115.0000,0,0,0,0,0,0);
    AddPlayerClass(45,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 46,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass(47,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass(48,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass(49,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 50,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 51,-470.4734,2207.0278,46.6846,115.0000,0,0,0,0,0,0);
    AddPlayerClass(52,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass(53,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass( 54,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass(55,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass(56,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);
    AddPlayerClass(57,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
    AddPlayerClass(58,-470.4734,2207.0278,46.6846,115.0000,0,0,0,0,0,0);
    AddPlayerClass(59,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
    AddPlayerClass(60,-468.3654,2208.0317,46.4776,115.0000,0,0,0,0,0,0);


    return 1;
}
Also this is a good tutorial : https://sampwiki.blast.hk/wiki/AddPlayerClass It explains it also.
Then you'd spawn in the desert with no weapons.
Hope this helped you
Reply


Messages In This Thread
Need help! To add player classes and more. - by Kitten_Blind - 21.11.2010, 16:55
Re: Need help! To add player classes and more. - by Victor - 21.11.2010, 17:03
Re: Need help! To add player classes and more. - by Backwardsman97 - 21.11.2010, 17:04
Re: Need help! To add player classes and more. - by Burridge - 21.11.2010, 17:06
Re: Need help! To add player classes and more. - by [SU]Balli - 21.11.2010, 17:08
Re: Need help! To add player classes and more. - by Kitten_Blind - 21.11.2010, 18:18
AW: Need help! To add player classes and more. - by [SU]Balli - 22.11.2010, 11:14
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 14:06
AW: Need help! To add player classes and more. - by [SU]Balli - 22.11.2010, 15:06
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 15:23
AW: Need help! To add player classes and more. - by [SU]Balli - 22.11.2010, 16:02
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 16:06
Re: Need help! To add player classes and more. - by TheXIII - 22.11.2010, 16:10
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 16:13
Re: Need help! To add player classes and more. - by -Rebel Son- - 22.11.2010, 16:19
Re: Need help! To add player classes and more. - by TheXIII - 22.11.2010, 16:19
Re: Need help! To add player classes and more. - by -Rebel Son- - 22.11.2010, 16:22
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 16:29
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 18:27
Re: Need help! To add player classes and more. - by TheXIII - 22.11.2010, 18:29
Re: Need help! To add player classes and more. - by OldDirtyBastard - 22.11.2010, 18:40
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 19:17
Re: Need help! To add player classes and more. - by armyoftwo - 22.11.2010, 19:24
Re: Need help! To add player classes and more. - by OldDirtyBastard - 22.11.2010, 19:29
Re: Need help! To add player classes and more. - by Kitten_Blind - 22.11.2010, 19:54

Forum Jump:


Users browsing this thread: 2 Guest(s)