Status! Need Some Help + Rep - 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: Status! Need Some Help + Rep (
/showthread.php?tid=386232)
Status! Need Some Help + Rep - Patrick - 19.10.2012
Код:
dcmd_stats(playerid,params[])
{
#pragma unused params
new Stats[300];
format(Stats,sizeof(Stats),"{FF0000}BankCash:{FFFFFF} $%d\n{FF0000}Cash:{FFFFFF} $%d\n{FF0000}Score:{FFFFFF} %d\n{FF0000}Rob skills level:{FFFFFF} %d\n{FF0000}Terrorist skills level:{FFFFFF} %d", BankCash[playerid], GetPlayerMoney(playerid),GetPlayerScore(playerid),RobSkill[playerid],TerroristSkill[playerid]);
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX, "Status", Stats, "Close", "");
return 1;
}
I Use This Code guyz to see stats on my CNR Server
But Can Anyone help me add more status? Like
Total Time Played <hours>
Can Use CIA <Yes Or No>
Cam Use Army <Yes Or No>
House Owned <how many?>
Regular Player <Yes Or No>
Can Anyone give me a command? with add of that? Pls I Will rep you
Re: Status! Need Some Help + Rep -
Mr.Anonymous - 19.10.2012
Quote:
Originally Posted by pds2012
Total Time Played <hours>
Can Use CIA <Yes Or No>
Cam Use Army <Yes Or No>
House Owned <how many?>
Regular Player <Yes Or No>
|
If you have some function in your script that can calculate all those things then YES you can.
Re: Status! Need Some Help + Rep - Patrick - 19.10.2012
yes i have. teamviewer me pls if u can help me. pls
Re: Status! Need Some Help + Rep -
Mr.Anonymous - 19.10.2012
Look, I cannot come on Teamviewer now. But I can help you here. For the total time played, make some functions or find a filterscript for that. About the CIA, check if the player has score or whatever and put that in your dialog (same with army). About houses owned, loop it. About regular player, check it with true or false.
Hope that helped you.