28.12.2016, 12:05
so here are my random spawns:
the problem is , when player registers it doesn't spawn on those coordinates that are mentioned below
any help ?
Код:
new Float:RandomSpawn[][16] =
{
// Los Santos
{2296.3975,-1156.8369,26.6812},
{2377.8650,-1741.5209,13.5469},
{1507.0876,-1704.7568,14.0469},
{980.0096,-1102.7827,23.8306},
{382.9699,-2050.8606,7.8359},
// San Fierro
{-1596.5536,799.2558,6.8203},
{-2126.4409,908.1872,79.7551},
{-1983.8867,168.4174,27.6875},
{-2311.1528,150.0083,35.3125},
{-2979.2583,466.3502,4.9141},
// Las Venturas
{1687.4188,1448.2205,10.7685},
{2027.3158,1366.2428,10.8203},
{2212.1470,1839.5153,10.8203},
{2438.7783,2378.6965,10.8203},
{2557.0408,1963.0181,10.8203}
};
Код:
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_Close(File);
SpawnPlayer(playerid);
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);


