Use a trigger_use (press use on the trigger) or trigger_multiple (walk into the trigger) for bonushealth() and weapon1()
Code: Select all
bonushealth()
{
trig = getent ("bonushealth","targetname");
while (1)
{
trig waittill ("trigger",player);
player iprintlnbold ("^3Bonus: HP + 500,000");
player.health = (player.health + 500000); // this can be changed to whatever health you want :)
}
}
//UO ONLY for this command // you also need to have a weapon folder in your pk3 with the weapon that you picked. So mine would be \weapons\mp colt_mp
weapon1()
{
trig = getent ("weapon1","targetname");
while (1)
{
trig waittill ("trigger",player);
player setWeaponSlotWeapon("primaryb","colt_mp"); // this can be any of the weapons, just have _mp at the end of it
player setWeaponSlotAmmo("primaryb","999");
player setWeaponSlotClipAmmo("primaryb","999");
player iprintlnbold ("^3You received a Colt"); // this can be anything
}
}
message()
{
trig = getent ("message","targetname"); // trigger_mutiple or trigger_use
while (1)
{
trig waittill ("trigger",player);
if(isdefined(player.down)) return;
player iprintlnbold ("Welcome to my map! Watch out for the big monsters"); // be anything you want
player.down = "doneit";
}
}