Money - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Money (
/showthread.php?tid=379133)
Money -
FaZeRs - 20.09.2012
In what file i can change money when user join the game??
Re: Money -
trapstar2020 - 20.09.2012
use giveplayermoney
and if u want a custom one u need a custom saving + adding system
Re: Money -
Lordzy - 20.09.2012
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.
}