19.06.2018, 15:19
You can make it.
https://sampwiki.blast.hk/wiki/Random
Код:
new Float:driftSpawn[][4] = { {-358.1943, 1531.2908, 75.3594, 264.7289}, {2265.3010, 1399.5085, 42.8203, 269.7637}, {-2489.8352, -616.3491, 132.5658, 178.7447}, {2243.2185, 1963.3853, 31.7797, 178.7447}, {1146.2198, 2178.7068, 10.8203, 178.7447}, {1886.9543, 1813.2211, 18.9339, 178.7447}, {-766.7426, -1730.1228, 96.3219, 355.3116}, {-2418.8452, 81.8775, 35.0234, 89.7884}, {-771.1682, -100.2281, 65.0979, 290.6882}, {1246.2567, -2057.4617, 59.8061, 266.6361} }; public OnPlayerSpawn(playerid) { new rand = random(sizeof(driftSpawn)); SetPlayerPos(playerid, driftSpawn[rand][0], driftSpawn[rand][1],driftSpawn[rand][2]); SetPlayerFacingAngle(playerid, driftSpawn[rand][3]); SetPlayerSkin(playerid, 1+random(299)); return 1; }