19.10.2009, 13:02
Quote:
Originally Posted by PANNA
alright,
can someone please tell me how i can make from these teleport coordinates random teleports, so when u type, /war, you teleport to 1 random one of these. Код:
354.2154,2030.3007,23.8673 268.8435,2022.3782,17.6406 268.1262,1988.9603,17.6406 267.6958,1956.3184,17.6406 223.7248,1931.2437,17.6406 171.6965,1834.9309,17.6406 153.6859,1845.1970,17.6406 141.6754,1875.6266,17.8434 155.0106,1903.1884,18.7108 |
pawn Код:
new Float:TP[8][3] = {
{354.2154,2030.3007,23.8673},
{268.8435,2022.3782,17.6406},
{268.1262,1988.9603,17.6406},
{267.6958,1956.3184,17.6406},
{223.7248,1931.2437,17.6406},
{171.6965,1834.9309,17.6406},
{153.6859,1845.1970,17.6406},
{141.6754,1875.6266,17.8434},
{155.0106,1903.1884,18.7108},
};
pawn Код:
new rand = random(sizeof(TP));
SetPlayerPos(playerid, TP[rand][0], TP[rand][1], TP[rand][2]);
