How do you remove player bounds on death? -
ThePS3Guy - 12.08.2009
Hi I am trying to make a war/deathmatch part in my script. I successfully wrote the following:
if (strcmp("/war", cmdtext, true, 10) == 0)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 324.1194,1838.2267,17.6406);
GivePlayerWeapon(playerid, 24, 200); //deagle
GivePlayerWeapon(playerid, 16, 50); //grenade
GivePlayerWeapon(playerid, 25, 999); //shotgun
GivePlayerWeapon(playerid, 31, 2400); //M4
SetPlayerWorldBounds(playerid,414.1020, 60.2910, 2125.1494, 1735.6417);
SendClientMessage(playerid,0x00FF00AA,"You were drafted");
return 1;
}
but how do I make it so that the playerworldbounds disappear after death? Im thinking something to do with onplayerdeath?
Re: How do you remove player bounds on death? -
Djiango - 12.08.2009
Add this under, OnPlayerDeath or OnPlayerSpawn.
pawn Код:
SetPlayerWorldBounds(playerid,20000.0000,-20000.0000,20000.0000,-20000.0000); //Reset world to player
Re: How do you remove player bounds on death? -
Mark^^ - 12.08.2009
You should add a higher value, because map is much higher.
Use something around 6000 I think.
Re: How do you remove player bounds on death? -
WrathOfGenesis - 12.08.2009
He said a min and max of 20,000 in both X and Y. That should be plenty considering i dont think the map goes past 3,000 at any point.