07.02.2009, 22:28
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
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
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; }
"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