12.08.2012, 10:10
Done!!!
Код:
if ( response ) { switch ( listitem ) { case 0: { new string[128], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(string, sizeof(string), "{FF0000}(/glass) {FFFF00}Player {FF0000}%s {FFFF00}has Teleported to {FF0000}Glass DeathMatch",pName); SendClientMessageToAll(playerid, string); new Random = random(sizeof(RandomSpawnGlassDM)); SetPlayerPos(playerid, RandomSpawnGlassDM[Random][0], RandomSpawnGlassDM[Random][1], RandomSpawnGlassDM[Random][2]); SetPlayerFacingAngle(playerid, RandomSpawnGlassDM[Random][3]); } case 1: { new string[128], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(string, sizeof(string), "{FF0000}(/minigun) {FFFF00}Player {FF0000}%s {FFFF00}has Teleported to {FF0000}Minigun DeathMatch",pName); SendClientMessageToAll(playerid, string); new Random = random(sizeof(RandomSpawnMinigunDM)); SetPlayerPos(playerid, RandomSpawnMinigunDM[Random][0], RandomSpawnMinigunDM[Random][1], RandomSpawnMinigunDM[Random][2]); SetPlayerFacingAngle(playerid, RandomSpawnMinigunDM[Random][3]); } } }