Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Basic Server Side Money by TooBasic
- MUST BE ADDED AS .inc !!!
- DO NOT REMOVE THESE CREDITS!
- */
- stock server_SetCash(playerid, cash)
- {
- SetPVarInt(playerid, "Cash", cash);
- ResetPlayerMoney(playerid); GivePlayerMoney(playerid, GetPVarInt(playerid, "Cash"));
- return 1;
- }
- stock server_GiveCash(playerid, cash)
- {
- SetPVarInt(playerid, "Cash", GetPVarInt(playerid, "Cash") + cash);
- ResetPlayerMoney(playerid); GivePlayerMoney(playerid, GetPVarInt(playerid, "Cash"));
- return 1;
- }
- stock server_ResetCash(playerid)
- {
- SetPVarInt(playerid, "Cash", 0);
- ResetPlayerMoney(playerid);
- return 1;
- }
- stock server_GetCash(playerid)
- {
- return GetPVarInt(playerid, "Cash");
- }
- /*
- Basic Server Side Money by TooBasic
- DO NOT REMOVE THESE CREDITS!
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement