04.05.2017, 01:33
PHP код:
new Float:LSPDPrisonSpawns[10][3] = { /* 10 filas y 3 columnas */
{1927.0753, 1197.9313, 18.1259},
{1927.6934, 1195.1487, 18.1259},
{1927.6345, 1192.0869, 18.1259},
{1927.0598, 1188.6780, 18.1259},
{1926.7836, 1185.6752, 18.1259},
{1911.4761, 1185.5520, 18.1259},
{1911.9865, 1188.9818, 18.1259},
{1911.2690, 1192.0034, 18.1259},
{1910.8414, 1195.0859, 18.1259},
{1911.0773, 1198.2438, 18.1259}
};
PHP код:
/* SetPlayerPos solamente tiene 4 argumentos. */
new x = random( sizeof(LSPDPrisonSpawns) );
SetPlayerPos(playerid, LSPDPrisonSpawns[x][0], LSPDPrisonSpawns[x][1], LSPDPrisonSpawns[x][2]);