17.11.2010, 01:32
2. I got several spawnpoints, but how do i make it so that instead of a certain skin going to a certain spawnpoint, it randomizes. BTW i got regular skins, cop skins, pilot skins, so they need to be seperate.
5. How do i make certain skins spawn with certain weps?
You do this with addplayerclass
https://sampwiki.blast.hk/wiki/AddPlayerClass
All i could help with sorry.
pawn Код:
//news
new Float:RandomSpawn[][10] = //change 10 to however many spawns you have.
{
{1366.3746, 2173.3083, 11.1461, 294.6393},
{1322.2386, 2120.1699, 13.7129, 5.1400},
{1321.4244, 2155.9250, 11.0234, 174.7999},
{1409.9850, 2100.8027, 12.0156, 345.9935},
{1297.5820, 2216.2720, 19.8150, 230.0792},
{1366.7742, 2196.3889, 9.7578, 188.4557},
{1395.9301, 2214.9568, 12.0156, 128.4330}
};
//under onplayerspawn
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
You do this with addplayerclass
https://sampwiki.blast.hk/wiki/AddPlayerClass
All i could help with sorry.