Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using SampSharp.GameMode.World;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ASimpleLife
- {
- class AslPlayer : GtaPlayer
- {
- public string hash;
- public int argent;
- public int level;
- public int respect;
- public AdminLevel admin;
- public enum AdminLevel {
- Normal,
- Moderator,
- Admin,
- Owner
- };
- public AslPlayer(int id)
- : base(id)
- {
- }
- public void DefineASL(string hash, int argent, int level, int respect, AdminLevel admin)
- {
- this.hash = hash;
- this.argent = argent;
- this.level = level;
- this.respect = respect;
- this.admin = admin;
- }
- #region Money management
- public void SetMoney(int amount)
- {
- this.argent = amount;
- this.ActualizeClientMoney();
- }
- public void GiveMoney(int amount)
- {
- this.argent += amount;
- ActualizeClientMoney();
- }
- public void TakeMoney(int amount)
- {
- this.GiveMoney(amount * -1);
- }
- private void ActualizeClientMoney()
- {
- this.Money = this.argent;
- }
- #endregion
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement