I need help with /stats
#1

Can you please tell me how to put this in dialog?

Код:
stock GetStats(playerid, forplayerid, more = 0)
{
	new tlvl;
	if(PlayerInfo[playerid][playerlvl]<=8) tlvl=9; else tlvl=PlayerInfo[playerid][playerlvl]*2;
	SendClientMSG(forplayerid,COLOR_STATS2,"_________________________________________________________________________________", RPName(playerid));
	NearMessage(playerid," ",COLOR_STATS2);
	SendClientMSG(forplayerid, COLOR_WHITE,"%s(%d): Level[%d] | Bank[$%s] | Money[$%s] | RPoints[%d/%d] | Phone[%d]",RPName(playerid),playerid,PlayerInfo[playerid][playerlvl],number_format(PlayerInfo[playerid][bank]),number_format(PlayerTemp[playerid][sm]),PlayerInfo[playerid][rpoints],tlvl,PlayerInfo[playerid][phonenumber]);
	SendClientMSG(forplayerid, COLOR_WHITE,"Age[%d] | MarriedWith[%s] | Donator[%d] | House[%d] | FishCarried[%slbs] | TotalPT[%d]",PlayerInfo[playerid][age],PlayerInfo[playerid][married],PlayerInfo[playerid][premium],PlayerInfo[playerid][housenum], number_format(PlayerTemp[playerid][totalfish]),PlayerInfo[playerid][totalpayt]);
	SendClientMSG(forplayerid, COLOR_WHITE,"Kills[%d] | Deaths[%d] | Admin[%d] | Job[%s] | Drugs[/mydrugs] | Warns[%d/5]",PlayerInfo[playerid][kills],PlayerInfo[playerid][deaths],PlayerInfo[playerid][power],PlayerInfo[playerid][job],PlayerInfo[playerid][warns]);
	if(PlayerInfo[playerid][playerteam] != CIV) SendClientMSG(forplayerid, COLOR_WHITE,"Faction:[%s] | Rank:[%s] | Tier:[%d] | Skin[%d]",PlayerInfo[playerid][PTeamName],PlayerInfo[playerid][rankname],PlayerInfo[playerid][ranklvl],PlayerInfo[playerid][Skin]);
//	if(PlayerTemp[playerid][groupID]) SendClientMSG(forplayerid, COLOR_WHITE,"{FF4500}>{FFFFFF} Group: {DCDCDC}(%d){FFFFFF} %s - GroupLeader:[%s]",PlayerTemp[playerid][groupID], PlayerTemp[playerid][groupName], NoUnderscore(PlayerTemp[playerid][groupLeader]));
	if(PlayerInfo[playerid][jail]) SendClientMSG(forplayerid, COLOR_WHITE, "JailTime:[%dsec] | Reason:[%s]", PlayerInfo[playerid][jailtime],PlayerInfo[playerid][jailreason]);
	if(more)
	{
		new okzone[ 40 ];
		GetPlayerPos(playerid,retx[playerid],rety[playerid],retz[playerid]);
		GetZone(retx[playerid],rety[playerid],retz[playerid], okzone);
		SendClientMSG(forplayerid, COLOR_WHITE, "{FF0000}[Admin] {FF6347}IP[%s] Location[%s] | Int/VW[%d/%d]",  PlayerTemp[playerid][IP], okzone, GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
	}
	SendClientMessage(forplayerid,COLOR_STATS2,"________________________________________________________________________________");
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)