decash

Started by :P, Oct 15, 2015, 07:50 PM

Previous topic - Next topic

:P

here a code its have a bit prob if player press alt key  to he gone a message you dont have money and nitro i want dont give nitro if he dont have money if he have money give him
function onKeyDown( player, key )
{
if ( key == left_alt )
{
if ( player.Cash >= 1000 ) player.Cash -= 1000;
else MessagePlayer("You dont have $1000 on your hand", player )
}
}
SLC is a good scripter but he always use bad words for abusing players :P

EK.IceFlake

BindKey whatever --- where?

Thijn

Like so?
function onKeyDown( player, key )
{
if ( key == left_alt )
{
if ( player.Cash < 1000 ) MessagePlayer("You dont have $1000 on your hand", player );
else {
player.Cash -= 1000;
//Do your nitro stuff here.
}
}
}

:P

Thanks TOPIC LOCKED
SLC is a good scripter but he always use bad words for abusing players :P