Looking for a pay command

Joe

Well-Known Member
Jun 10, 2012
4,089
1,918
Hey,

I've added a pay command that I found here but there's no checking, you can give yourself minus amounts etc.
I was wondering if anybody has a working pay command that would pay credits, duckets and diamonds, or could help me with it.

Thank you!
 

Jerry

not rly active lol
Jul 8, 2013
1,956
522
Just add this check so you can’t pay in negative amounts:

Code:
if (!uint.TryParse(Params[2], out uint Amount))
{
    // don’t execute as the value is negative
    return;
}

Then this code so u can’t pay yourself:
Code:
if (TargetClient == Session)
{

}
 

Joe

Well-Known Member
Jun 10, 2012
4,089
1,918
Just add this check so you can’t pay in negative amounts:

Code:
if (!uint.TryParse(Params[2], out uint Amount))
{
    // don’t execute as the value is negative
    return;
}

Then this code so u can’t pay yourself:
Code:
if (TargetClient == Session)
{

}
Thanks Jerry!
 

Users who are viewing this thread

☀️  Switch to Light Theme

Latest posts

Top