PDA

View Full Version : [HELP]Starting Money


ValiLucifer
30/10/2013, 08:46 AM
Good day sir/ma'am! May I have your attention? I want to edit the starting money of our script. I am using NERP 0.3x gamemode. The starting money of our server is $30,000, I want to make it only $1,000. Thanks!

Tagathron
30/10/2013, 08:58 AM
If it's set on GivePlayerMoney(playerid, money) then just change the money argument.If the money is stored into a variable,then you should modify that too.
Just post the code here(OnPlayerConnect() part) so others can see what happens with the money when player comes.

Sinner
30/10/2013, 09:02 AM
To find something in a script, type CTRL+F (which in most editors is the search function) and search for "30000". Edit that number to 1000. This is quite possibly a define somewhere, for example:
#define STARTING_MONEY 30000

ValiLucifer
30/10/2013, 09:31 AM
To find something in a script, type CTRL+F (which in most editors is the search function) and search for "30000". Edit that number to 1000. This is quite possibly a define somewhere, for example:
#define STARTING_MONEY 30000

There is no code like that.

Patrick
30/10/2013, 09:35 AM
Alright, if there's no code like that given by Sinner, try to CTRL+F dialogid == DIALOG_REGISTER if you found that, put GivePlayerMoney(playerid, amount); underneath that code

ValiLucifer
30/10/2013, 09:36 AM
Alright, if there's no code like that given by Sinner, try to CTRL+F dialogid == DIALOG_REGISTER if you found that, put GivePlayerMoney(playerid, amount); underneath that code

There is no DIALOG_REGISTER in my script. :(

ValiLucifer
30/10/2013, 09:42 AM
Should I say I am using NGRP script.

MaxTheMapper
30/10/2013, 09:44 AM
There Must bE A line Under:

public OnPlayerConnect()

The Line must be:

GivePLayerMoney(playerid, 30000)

Just Change It To Whatever You Want ;)

I dON tKnow If it works cuz i nevr use this script :)

Kyance
30/10/2013, 09:46 AM
public OnPlayerSpawn(playerid)
{
ResetPlayerMoney(playerid); //Resets the players money, making it go from 30'000 to 0.
GivePlayerMoney(playerid, 1000); //Then gives him the 1'000
return 1;
}
Or just try finding the "30000" as other people said.. xd

Konstantinos
30/10/2013, 09:47 AM
public OnPlayerSpawn(playerid)
{
ResetPlayerMoney(playerid); //Resets the players money, making it go from 30'000 to 0.
GivePlayerMoney(playerid, 1000); //Then gives him the 1'000
return 1;
}
Or just try finding the "30000" as other people said.. xd

So everytime a player re-spawns, his money will become 1000..

ValiLucifer
30/10/2013, 09:48 AM
This is RP server sir/ma'am :) I want them to have a real life

samp_boy
30/10/2013, 09:48 AM
public OnPlayerSpawn(playerid)
{
GivePlayerMoney(playerid, 50000);
return 1;
}

RajatPawar
30/10/2013, 09:50 AM
There Must bE A line Under:

public OnPlayerConnect()

The Line must be:

GivePLayerMoney(playerid, 30000)

Just Change It To Whatever You Want ;)

I dON tKnow If it works cuz i nevr use this script :)
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSbef4K1sreL1ydCE0WIkYliGa3e2T5S 7qjS-oZIXHFHAFybtJ0

OT: Why don't you show us your OPC, and player enum?

Kyance
30/10/2013, 09:51 AM
So everytime a player re-spawns, his money will become 1000..

Right... didn't thought of that, lol.
Well, eh... chars maybe? :]

ValiLucifer
30/10/2013, 09:58 AM
Anyone? ???

ValiLucifer
30/10/2013, 12:06 PM
Anyone can help me? ???