29.05.2009, 13:41
well if you want to be able to choose a class, go in-game and use /save when you're not in a car. Then go to where GTA SA is installed:
if you're not sure, click on the green+orange cog in the SA-MP window where the server list is. A box should come up, copy the line next to the folders (should be something like C:\Program Files\Rockstar Games\GTA San Andreas\) then open up my documents and paste it into the address bar.
Now look for a text document called "savedpositions". If you can't see it and you are using vista, click on the compatibility button, it should look like this:
And now you should see it.
Open up the file and you will find your saved codes. It should look like:
The skin is who it will be in class selection and who you spawn with, the x,y,z is where they will spawn, you can change this in OnPlayerSpawn, the facing angle is which way they will be facing in class selection and the weapons are what they will spawn with.
Like I said, any of this can be changed in OnPlayerSpawn.
Add a few of these and then copy + paste them Above the create objects.
e.g.
Also the gamemode compiles fine now. weird.
if you're not sure, click on the green+orange cog in the SA-MP window where the server list is. A box should come up, copy the line next to the folders (should be something like C:\Program Files\Rockstar Games\GTA San Andreas\) then open up my documents and paste it into the address bar.
Now look for a text document called "savedpositions". If you can't see it and you are using vista, click on the compatibility button, it should look like this:
And now you should see it.
Open up the file and you will find your saved codes. It should look like:
pawn Код:
AddPlayerClass(287,1958.3783, 1343.1572, 15.3746,270,0,0,0,0,0,0);
//Skin, X,Y,X, Facing Angle, Weapon 1, Ammo 1, Weapon 2, Ammo 2, Weapon 3, Ammo 3.
Like I said, any of this can be changed in OnPlayerSpawn.
Add a few of these and then copy + paste them Above the create objects.
e.g.
pawn Код:
public OnGameModeInit()
{
AddPlayerClass(287,1958.3783, 1343.1572, 15.3746,270,0,0,0,0,0,0);
AddPlayerClass(294,1958.3783, 1343.1572, 15.3746,270,0,0,0,0,0,0);
AddPlayerClass(299,1958.3783, 1343.1572, 15.3746,270,0,0,0,0,0,0);
CreateObject(13105, 3733.499268, -1544.142456, -4.270958, 2.5783, 0.0000, 0.0000);
Also the gamemode compiles fine now. weird.