13.09.2018, 11:23
PHP код:
new const Float:g_SpawnGroves[][4] = {
{2495.9788,-1709.5435,1014.7422,359.6140, interiorid},
{2495.9788,-1709.5435,1014.7422,359.6140, interiorid},
{2495.9788,-1709.5435,1014.7422,359.6140, interiorid}
};
PHP код:
new rpos = random(sizeof(g_SpawnGroves));
SetPlayerPos(playerid, g_SpawnGroves[rpos][0], g_SpawnGroves[rpos][1], g_SpawnGroves[rpos][2]);
SetPlayerInterior(playerid, g_SpawnGroves[rpos][3]);