SA-MP Forums Archive
Raven's Roleplay /stats - 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: Raven's Roleplay /stats (/showthread.php?tid=413512)



Raven's Roleplay /stats - Godzilla8957 - 05.02.2013

hey everybody,
i am currently working on the raven's roleplay server right now.. is their anyway i can edit /stats so it will be a dialog?
here is the command if you need it

Код:
if (strcmp(cmd, "/stats", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (gPlayerLogged[playerid] != 0)
			{
				ShowStats(playerid,playerid);
				new y, m, d;
				new h,mi,s;
				getdate(y,m,d);
				gettime(h,mi,s);
				format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /stats",d,m,y,h,mi,s,sendername);
				CommandLog(string);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not Logged in!");
				return 1;
			}
		}
		return 1;
	}



Re: Raven's Roleplay /stats - Faisal_khan - 05.02.2013

Post your CommandLog function. Edit it to make it in dialog.