PHP код:
if(CurrentMenu == dm)
{
switch(row)
{
case 0:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 26, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, 1127.9473, -1446.7574, 15.7968);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 1 (SAWNOFF).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 1:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 29, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, 2508.3786, 2786.6369, 10.8203);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 2 (MP5).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 2:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 32, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, 1445.934, -1064.5279, 213.3827);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 3 (TEC9).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 3:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 27, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, -924.254, -498.0311, 26.7656);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 4(CombatShotgun).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 4:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 31, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, -2129.3096, -444.2732, 35.5344);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 5(M4).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 5:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 28, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, 1315.9521, -987.8052, 148.6437);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 6(MicroUzi).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 6:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 30, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, 214.5838, 1875.3218, 17.6406);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 7(AK47).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 7:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerHealth(playerid, 100.0);
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid, 761.6077, 11.0399, 1001.1638);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 8 (Boks).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 8:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 33, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, 2276.2846, 1070.2078, 10.8203);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 9 (Rifle).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 9:
{
ShowMenuForPlayer(teleport, playerid);
}
}
}
if(CurrentMenu == dm2)
{
switch(row)
{
case 0:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 26, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, 2256.1511, 1081.4821, 33.5284);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 10(SAWNOFF2).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 1:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 31, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, -1470.9282, 382.7427, 30.0858);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 11(M4).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 2:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 25, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, -1596.9136, 149.0782, -10.8312);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 12(Shotgun).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 3:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 24, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, 260.5979, 2898.8537, 8.9909);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 13(DesertEagle).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 4:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 30, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, -273.9698, 2353.0808, 109.2238);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 14(AK47).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 5:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 9, 1);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, -924.0569, 2675.6586, 42.3703);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 15(Dildo).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 6:
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 34, 999);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, -1288.9788,2504.3210,86.9994);
GetPlayerName(playerid, var0, 25);
format(var1, 256, ">>%s has teleported to deathmatch 16(Sniper).", var0);
SendClientMessageToAll(0xFF9900AA, var1);
TogglePlayerControllable(playerid,1);
}
case 7:
{
ShowMenuForPlayer(teleport, playerid);
}
}
}
return 1;
}