Playerstart
#10

If you want the player position you can do :

Go in-game and use the command "/save"

After you done this , you'll be able to get the coordinates . Sure , the question about this is where these coords go , it is easy . Go in "My documents" -> "GTA San Andreas User Files" -> "SA-MP" -> "savedpositions" .

If you'll open that you'll find the locations that have been saved . Let's give an simply explanation on them .

All those files get saved in a method like this :

Код:
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
And you'll be asking your self what all these coords are . Well , it is easy to be learned . Here , see this label :

Код:
skin	The skin which the player will spawn with.
Float:X	The X coordinate of the spawnpoint of this class.
Float:Y	The Y coordinate of the spawnpoint of this class.
Float:Z	The Z coordinate of the spawnpoint of this class.
Float:Angle	The direction in which the player should face after spawning.
weapon1	The first spawn-weapon for the player.
weapon1_ammo	The amount of ammunition for the primary spawnweapon.
weapon2	The second spawn-weapon for the player.
weapon2_ammo	The amount of ammunition for the second spawnweapon.
weapon3	The third spawn-weapon for the player.
weapon3_ammo	The amount of ammunition for the third spawnweapon.
The method like in the code is :

Код:
(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
For the skins you can go on :

https://sampwiki.blast.hk/wiki/Skins:All

Check that for skins , and about weapons you can check this :

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

Good luck
Reply


Messages In This Thread
Playerstart - by SonOussi - 18.01.2013, 17:20
Re: Playerstart - by Infinity90 - 18.01.2013, 17:28
Re: Playerstart - by SonOussi - 18.01.2013, 17:31
Re: Playerstart - by Infinity90 - 18.01.2013, 17:33
Re: Playerstart - by SonOussi - 18.01.2013, 17:34
Re: Playerstart - by Infinity90 - 18.01.2013, 17:37
Re: Playerstart - by Private200 - 18.01.2013, 17:40
Re: Playerstart - by SonOussi - 18.01.2013, 17:41
Re: Playerstart - by Infinity90 - 18.01.2013, 17:44
Re: Playerstart - by Private200 - 18.01.2013, 17:46

Forum Jump:


Users browsing this thread: 1 Guest(s)