06.10.2014, 12:02
Can Someone Create a Command for me ? Which will Show a Dialog of Player Stats.
Which is in a .dudb File.The Command will Read and Show the Status in a Dialog Like
HERE IS THE SAMPLE STATUS OF A PLAYER THAT I WANT TO SHOW IN A DIALOG WHEN TYPED /stats
password_hash=9421312132 [It is in .dudb file but I don't want to Show this in the Dialog]
Money=1000000
Bankcash=1565000
Score=5464
Adminlevel=1
Nameban=0 [It is in .dudb file but I don't want to Show this in the Dialog]
Army=1337 [If Possible Can You make the 1337 = YES and 0 = NO]
CIA=1337 [If Possible Can You make the 1337 = YES and 0 = NO]
RegularPlayer=1337 [If Possible Can You make the 1337 = YES and 0 = NO]
DrugHouseOwner=0
OttoOwner=0
TSkill=0
RobSkill=30
HasPackC4=0
HasPackRope=5
HasPackMoney=0
SavedJailTime=0
SavedWantedLevel=16 [It is in .dudb file but I don't want to Show this in the Dialog]
IP=192.168.1.16
Cash=1000000
My Gamemode Uses dcmd.
And Here is the Code From which the Status of a Player Saved in .dudb File
Which is in a .dudb File.The Command will Read and Show the Status in a Dialog Like
HERE IS THE SAMPLE STATUS OF A PLAYER THAT I WANT TO SHOW IN A DIALOG WHEN TYPED /stats
password_hash=9421312132 [It is in .dudb file but I don't want to Show this in the Dialog]
Money=1000000
Bankcash=1565000
Score=5464
Adminlevel=1
Nameban=0 [It is in .dudb file but I don't want to Show this in the Dialog]
Army=1337 [If Possible Can You make the 1337 = YES and 0 = NO]
CIA=1337 [If Possible Can You make the 1337 = YES and 0 = NO]
RegularPlayer=1337 [If Possible Can You make the 1337 = YES and 0 = NO]
DrugHouseOwner=0
OttoOwner=0
TSkill=0
RobSkill=30
HasPackC4=0
HasPackRope=5
HasPackMoney=0
SavedJailTime=0
SavedWantedLevel=16 [It is in .dudb file but I don't want to Show this in the Dialog]
IP=192.168.1.16
Cash=1000000
My Gamemode Uses dcmd.
And Here is the Code From which the Status of a Player Saved in .dudb File
Код:
if(PLAYERLIST_authed[playerid] == 1) { dUserSetINT(PlayerName(playerid)).("Bankcash",BankCash[playerid]); dUserSetINT(PlayerName(playerid)).("Cash",GetPlayerMoney(playerid)); dUserSetINT(PlayerName(playerid)).("Score",GetPlayerScore(playerid)); dUserSetINT(PlayerName(playerid)).("Adminlevel",AdminLevel[playerid]); dUserSetINT(PlayerName(playerid)).("Army",CanUseArmy[playerid]); dUserSetINT(PlayerName(playerid)).("CIA",CanUseCIA[playerid]); dUserSetINT(PlayerName(playerid)).("RegularPlayer",IsRegularPlayer[playerid]); dUserSetINT(PlayerName(playerid)).("DrugHouseOwner",DrugHouseOwner[playerid]); dUserSetINT(PlayerName(playerid)).("OttoOwner",OttoOwner[playerid]); dUserSetINT(PlayerName(playerid)).("TSkill",TerroristSkill[playerid]); dUserSetINT(PlayerName(playerid)).("RobSkill",RobSkill[playerid]); dUserSetINT(PlayerName(playerid)).("HasPackC4",HasPackC4[playerid]); dUserSetINT(PlayerName(playerid)).("HasPackRope",HasPackRope[playerid]); dUserSetINT(PlayerName(playerid)).("HasPackMoney",HasPackMoney[playerid]); dUserSetINT(PlayerName(playerid)).("SavedWantedLevel",SavedWantedLevel[playerid]); dUserSetINT(PlayerName(playerid)).("SavedJailTime",SavedJailTime[playerid]); }