Robbed Cash

Started by HustoN, Jul 10, 2015, 05:50 AM

Previous topic - Next topic

HustoN

Hey How TO Set Cash That Player Rob From Any Shop
Quote from: DeViL_JiN on Jul 11, 2015, 06:31 PMAsk finchdon for brain, because he doesn't use his brain :)

MatheuS

if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

HustoN

Quote from: MatheuS on Jul 10, 2015, 06:40 AMArray -> Pickup -> player.Cash
Not Found. I Want To Increase Cash.When a Player Rob Bank He Got 1000 I Want To Increase.
Quote from: DeViL_JiN on Jul 11, 2015, 06:31 PMAsk finchdon for brain, because he doesn't use his brain :)

FarisDon

Quote from: HustoN on Jul 10, 2015, 08:01 AM
Quote from: MatheuS on Jul 10, 2015, 06:40 AMArray -> Pickup -> player.Cash
Not Found. I Want To Increase Cash.When a Player Rob Bank He Got 1000 I Want To Increase.
There would be a function in your Main.nut when player pick up the pickup to set it time and the cash etc go there and find it.It is not usually call Main.nut.

[VSS]Shawn

function onPickupPickedUp( player, pickup )
{
if (pickup.Model == 408)
{
PrivMessage( player, Wow You have rob store." );
player.Cash += 2000;
}

Just an example