24.12.2009, 15:31
Hello I know where you're wrong with the Randomspawn
Thans all
Quote:
#define COLOR_NEWS 0xFFA500AA #define COLOR_NEWOOC 0x0080FFAA PLAYER_MARKERS_MODE_OFF (0) PLAYER_MARKERS_MODE_GLOBAL (1) PLAYER_MARKERS_MODE_STREAMED (2) new iRandomNumber = random(25); new Float:RandomSpawn[][5] = { {-1434.4882,494.9395,3.0391,278.1984}, {-1381.4966,507.4694,3.0391,96.5076}, (-1347.5376,504.1595,18.2344,177.2255}, (-1412.8906,513.1929,10.0156,181.3615) } |
Quote:
if (strcmp("/DM1", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,100); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,23,5000); GivePlayerWeapon(playerid,25,5000); GivePlayerWeapon(playerid,29,5000); new iRandom = random(sizeof(RandomSpawn)); SetPlayerPos(playerid, RandomSpawn[iRandom][0], RandomSpawn[iRandom][1],RandomSpawn[iRandom][2],RandomSpawn[iRandom][3]); SetPlayerFacingAngle(playerid, RandomSpawn[iRandom][4]); SetPlayerWorldBounds(playerid, -1235.877, -1490.814, 566.447, 487.5477); SetPlayerInterior(playerid, 0); SendClientMessageToAll(0xFFFFF7FF, " join /dm1"); return 1; } |