Problems with Boundaries, Help!
#1

Well, I am trying to script a place where people can Stunt etc.
But I have allowed tanks to be there, so I do not wish for them to leave the area...
I don't do boundaries much, if not, never, so I struggle with them

Код:
if(strcmp(cmdtext, "/stuntroof", true) == 0 || strcmp(cmdtext, "/sr", true) == 0) // Stunt Roof
{
SetPlayerPos(playerid, -1456.4884,403.0696,30.0859);
SetPlayerWorldBounds(playerid, 20.0, -20.0, 20.0, -20.0);
ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SendClientMessage(playerid, COLOR_PURPLE, "You have Teleported to Stunt Roof");
SetPlayerFacingAngle(playerid, 86.7776);
new name[24];
new string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "*** %s has teleported to Stunt Roof (/sr) || (/stuntroof).", name);
SendClientMessageToAll(COLOR_GRAYTEXT, string);
return 1;
}
You see, I am merely testing this, but the problem is, when they teleport there, it decides to come up with
"Stay within the world boundaries"
Then it pulls me away from the teleport location...
This is frustrating me, as the main part of my script requires boundaries, so please someone lend a hand

Oh yeah, I forgot, it compiles A-Ok, so I just need to really know how to set proper boundaries
Reply


Messages In This Thread
Problems with Boundaries, Help! - by zappydude - 07.02.2009, 22:28
Re: Problems with Boundaries, Help! - by AlExAlExAlEx - 07.02.2009, 22:31
Re: Problems with Boundaries, Help! - by zappydude - 07.02.2009, 22:52
Re: Problems with Boundaries, Help! - by zappydude - 08.02.2009, 00:08
Re: Problems with Boundaries, Help! - by Nero_3D - 08.02.2009, 00:47
Re: Problems with Boundaries, Help! - by hazdog - 08.02.2009, 00:52
Re: Problems with Boundaries, Help! - by zappydude - 11.02.2009, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)