20.09.2012, 18:29
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:
Example:
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.
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.
}