player stats
#4

Quote:
Originally Posted by Kefir
Посмотреть сообщение
do you mean like a saving system ? where it saves all stats ?
nah just like player stats

i will show you what i mean


Код:
Something like this but obvis i cant use this as its not on my script.
public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
	{
		new cash =  GetPlayerMoney(targetid);
		new atext[20];
		if(PlayerInfo[targetid][pSex] == 1)
		{ atext = "Male"; }
		else if(PlayerInfo[targetid][pSex] == 2)
		{ atext = "Female"; }
  		new otext[20];
		if(PlayerInfo[targetid][pPlace] == 1)
		{ otext = "Europe"; }
		else if(PlayerInfo[targetid][pPlace] == 2)
		{ otext = "America"; }
		new drank[20];
		if(PlayerInfo[targetid][pVip] == 1)
		{ drank = "Gold Donator"; }
		else if(PlayerInfo[targetid][pVip] == 2)
		{ drank = "Silver Donator"; }
		else { drank = "None"; }
		new age = PlayerInfo[targetid][pAge];
		new warns = PlayerInfo[targetid][pWarns];
		new level = PlayerInfo[targetid][pLevel];
		new exp = PlayerInfo[targetid][pExp];
		new nxtlevel = PlayerInfo[targetid][pLevel]+1;
		new expamount = nxtlevel*levelexp;
		new costlevel = nxtlevel*levelcost;
		new name[MAX_PLAYER_NAME];
		new pnumber = PlayerInfo[targetid][pNumber];
		GetPlayerName(targetid, name, sizeof(name));
		new Float:px,Float:py,Float:pz;
		GetPlayerPos(targetid, px, py, pz);
		new coordsstring[128];
		SendClientMessage(playerid, COLOR_GREEN,"_____________________________________________________________________________________________");
		format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
		SendClientMessage(playerid, COLOR_YELLOW,coordsstring);
		format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] Cash:[$%d] Phone:[%d] ", level,atext,age,otext, cash, pnumber);
		SendClientMessage(playerid, COLOR_WHITE,coordsstring);
		format(coordsstring, sizeof(coordsstring), "DonateRank:[%s] Warns:[%d/5]", drank, warns);
		SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
		format(coordsstring, sizeof(coordsstring), "NextLevel:[$%d] Respect:[%d/%d]",costlevel,exp,expamount);
		SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
		SendClientMessage(playerid, COLOR_GREEN,"____________________________________________________________________________________________");
	}
}
Reply


Messages In This Thread
player stats - by OpticKiller - 14.05.2013, 22:42
Re: player stats - by [L]azy[H]aze - 14.05.2013, 22:46
Re: player stats - by jordy.kiesebrink - 14.05.2013, 22:49
Re: player stats - by OpticKiller - 14.05.2013, 22:52
Re: player stats - by jordy.kiesebrink - 14.05.2013, 22:56
Re: player stats - by OpticKiller - 15.05.2013, 00:19
Re: player stats - by RvGamers - 15.05.2013, 03:24
Re: player stats - by jordy.kiesebrink - 15.05.2013, 13:44
Re: player stats - by OpticKiller - 15.05.2013, 18:55
Re: player stats - by jordy.kiesebrink - 17.05.2013, 22:18

Forum Jump:


Users browsing this thread: 1 Guest(s)