20.03.2012, 10:36
Hello fellas, i have my own GM which i'm working on, but i'm in need of help. I'v saw a few posts on press "enter"
and teleport to interior. so i made it work, when i press "enter" it teleports into 24/7 store, but when i press "enter"
again to exit, it teleports me out to the position i want, but i can't see anything. (the teleport works but cant see after exiting), i tried to set the Virtualworld to 0 and etc. here's the code:
and teleport to interior. so i made it work, when i press "enter" it teleports into 24/7 store, but when i press "enter"
again to exit, it teleports me out to the position i want, but i can't see anything. (the teleport works but cant see after exiting), i tried to set the Virtualworld to 0 and etc. here's the code:
Код:
//===================================ENTER/EXIT [24/7]========================== public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_SECONDARY_ATTACK) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 1684.5339,1449.4463,10.7706)) { SetPlayerPos(playerid, 6.091179,-29.271898,1003.549438); SetPlayerInterior(playerid, 10); } else if(IsPlayerInRangeOfPoint(playerid, 2.0, 6.091179,-29.271898,1003.549438)) { SetPlayerPos(playerid, 1684.5339,1449.4463,10.7706); } } return 1; } //==============================================================================