new randkorhaz = random(5);SetPlayerPos(playerid, RandomKorhaz[randkorhaz]);
public OnPlayerDeath(playerid, killerid, reason){SetTimerEx(\"RandomKorhaz\", 1000, 0, \"i\", playerid);}forward RandomKorhaz(playerid);public RandomKorhaz(playerid){switch (random(6)){ case 0: { SetPlayerPos(playerid, 0.0, 0.0, 0.0); // SetPlayerInterior(playerid, 0); Interiorhoz}case 1: { SetPlayerPos(playerid, 0.0, 0.0, 0.0);}case 2: { SetPlayerPos(playerid, 0.0, 0.0, 0.0);} case 3: { SetPlayerPos(playerid, 0.0, 0.0, 0.0);}case 4: { SetPlayerPos(playerid, 0.0, 0.0, 0.0);}case 5: { SetPlayerPos(playerid, 0.0, 0.0, 0.0);}}return 1;}
new Float:RandomKorhaz[5][3] ={ {199.0875, 234.8727, 1003.0705}, {206.9056, 243.5900, 1003.0705}, {214.9705, 243.6292, 1003.0705}, {214.8167, 226.5120, 1003.0705}, {207.1830, 226.5352, 1003.0705}};
new Float:RandomKorhaz[5][3] = { {199.0875, 234.8727, 1003.0705}, {206.9056, 243.5900, 1003.0705}, {214.9705, 243.6292, 1003.0705}, {214.8167, 226.5120, 1003.0705}, {207.1830, 226.5352, 1003.0705}};public OnPlayerDeath(playerid, killerid, reason) {SetPVarInt(playerid, \"meghalt\", 1);return 1;}public OnPlayerSpawn(playerid) {if(GetPVarInt(playerid, \"meghalt\")) {DeletePVar(playerid, \"meghalt\");new rand = random(sizeof(RandomKorhaz));SetPlayerPos(playerid, RandomKorhaz[rand][0], RandomKorhaz[rand][1], RandomKorhaz[rand][2]);}return 1;}