gravity + super jump = mw2 error :(
Hi.
i want in my mw2 modded patch when people press 5 it gives them super jump and low gravity.
but every time i put this code it gives me an error
Code:
self notifyOnPlayerCommand("5", "+actionslot 2")
for (;;)
{
self waittill("5");
setDvar("g_gravity", 300);
setDvar("jump_height", 500);
self iPrintInBold("SUPER JUMP ACTIVATED !!");
self waittill("5");
setDvar("g_gravity", 800");
setDvar("jump_height", 39");
self iPrintInBold(" SUPER JUMP DE-ACTIVATED!!");
}
}
BTW I am putting this code in _rank.gsc