Money
#3

Quote:
Originally Posted by FaZeRs
Посмотреть сообщение
In what file i can change money when user join the game??
File, then you have to use a ini saving system and create cash variables for player inorder to save player's cash.

Or else,
You can use GivePlayerMoney function to give player money.
Usage:
pawn Код:
GivePlayerMoney(playerid,amount);
//Playerid refers to the player whom we are giving money.
//Change the amount to the amount, to give to the player.
Example:
pawn Код:
public OnPlayerSpawn(playerid) //When player gets spawned.
{
   GivePlayerMoney(playerid,100); //We've given $100 to the player who got spawned.
   return 1; //returning the function.
}
Reply


Messages In This Thread
Money - by FaZeRs - 20.09.2012, 18:01
Re: Money - by trapstar2020 - 20.09.2012, 18:20
Re: Money - by Lordzy - 20.09.2012, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)