30.07.2010, 02:10
Create a variable, name it w/e you want and set it to 0 when a player types /dm, set it to 1
under onplayerspawn put:
if(variablename = 1)
SetPlayerPos(playerid, 538.99822, -5008.17626, 54.34835);
GivePlayerWeapon(playerid, 24, 99999999);
GivePlayerWeapon(playerid, 26, 99999999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerWorldBounds(playerid, 1458.873, 1228.487, 2246.867, 2057.332);
then put
else
{
rest of OnPlayerSpawn data
}
Then under /exitdm set the variable to 0
under onplayerspawn put:
if(variablename = 1)
SetPlayerPos(playerid, 538.99822, -5008.17626, 54.34835);
GivePlayerWeapon(playerid, 24, 99999999);
GivePlayerWeapon(playerid, 26, 99999999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerWorldBounds(playerid, 1458.873, 1228.487, 2246.867, 2057.332);
then put
else
{
rest of OnPlayerSpawn data
}
Then under /exitdm set the variable to 0