12.08.2009, 02:30
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?
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?