SA-MP Forums Archive
ShowStats - 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: ShowStats (/showthread.php?tid=333977)



ShowStats - 3RoR - 13.04.2012

how to create when a player is watching his stats and when he close the dialog to show * %s his ..... is ..... to his pocket" in purple mode....
Код:
	if (strcmp(cmd, "/stats", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (gPlayerLogged[playerid] != 0)
			{
				ShowStats(playerid,playerid);
				GetPlayerNameEx(playerid, sendername, sizeof(sendername));
			    format(string, sizeof(string), "* %s gleda svoju iskaznicu.", sendername);
			    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "Niste prijavljeni!");
			}
		}
		return 1;
	}



Re: ShowStats - Cjgogo - 13.04.2012

DAM it now,really,this things CAN BE answered by wikipedia,really now to be honest with God withnessing me,and Jesus behind me...


Re: ShowStats - IstuntmanI - 13.04.2012

https://sampwiki.blast.hk/wiki/OnDialogResponse

Example:
Код:
if( dialogid == DIALOG_STATS )
{
    // message
}



Re: ShowStats - 3RoR - 13.04.2012

Are you kidding me ?
If you don't now how to help don't posT :@