25.10.2010, 13:56
Hello again.
I've made two commands, /enter and /exit.
/enter - works fine, what it does, it sets your interior and teleports you to a 24/7 shop.
/exit - does not work very well, it doesn't want me to teleport back. Althought, I don't get any errors.
So, here's the code.
Thanks in advance.
dLu
I've made two commands, /enter and /exit.
/enter - works fine, what it does, it sets your interior and teleports you to a 24/7 shop.
/exit - does not work very well, it doesn't want me to teleport back. Althought, I don't get any errors.
So, here's the code.
pawn Код:
if(!strcmp("/enter", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -2034.5068,148.5365,28.8359))
{
SetPlayerPos(playerid, -27.312300, -29.277599, 1003.549988);
SetPlayerInterior(playerid, 4);
}
}
if(!strcmp("/exit", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -27.312300, -29.277599, 1003.549988))
{
SetPlayerPos(playerid, -2034.5068,148.5365,28.8359);
SetPlayerInterior(playerid, 0);
}
}
dLu