have you tried adding the amx_teleport <player> to a predefined set of coordinates?
I have been trying to add it to my custom commandmenu but everytime I try and teleport myself it send me to x:0 y:0z:0, which is usually in a wall or in doors. but if I do it manually from the console it works fine, example from console: amx_teleport ".:TdoW:.Gunny" -2824 96 -299
I think my problem is getting the users name in quotes, but that messes up the code.
This is a sample of mine
Code:
"5" "Teleport"
{
//Map Specific
MAP de_aztec "1" "Teleport"
{
"1" "CT Spawn" "amx_teleport .:TdoW:.Gunny -2824 96 -299"
"2" "T Spawn" "amx_teleport: .:TdoW:.Gunny 1985 488 -251"
"3" "Double Doors CT side" "amx_teleport .:TdoW:.Gunny; -32 -169 -187"
}
MAP de_dust "1" "Teleport"
{
"1" "CT Spawn" "amx_teleport .:TdoW:. Gunny -224 -1744 100"
"2" "T Spawn" "amx_teleport .:TdoW:.Gunny 1740 2882 -70"
"3" "Tunnel Ext Tside 1" "amx_teleport .:TdoW:.Gunny -273 2153 81"
"4" "Tunnel Ext Ctside 1" "amx_teleport .:TdoW:.Gunny 1411 1392 73"
"5" "CT Camping spot 1" "amx_teleport .:TdoW:.Gunny -805 251 68"
"6" "Under Bridge" "amx_teleport .:TdoW:.Gunny -1242 1980 -133"
}
__________________