SA-MP Forums Archive
GameMode help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GameMode help (/showthread.php?tid=655362)



GameMode help - TadePoleMG - 19.06.2018

Hi guys

First sorry for making this thread in this section.

Can anyone suggest me any gamemode which uses random maps or any uses map voting. Then i appreciate you help me pls.

Thank You.


Re: GameMode help - AgusZ - 19.06.2018

You can make it.

Код:
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;
}
https://sampwiki.blast.hk/wiki/Random


Re: GameMode help - TadePoleMG - 19.06.2018

Can any script by which map voting i can do.


Re: GameMode help - GTLS - 19.06.2018

What do you mean by Map Voting? Can you explain more a bit?