27.12.2010, 13:16
Try this, not sure how much it will help
pawn Код:
public ShowStats(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new Float:health;
GetPlayerHealth(targetid,health);
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new coordsstring[256];
GetPlayerName(targetid, coordstring, sizeof(coordstring));
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
format(coordsstring, sizeof(coordsstring),"*** %s ***",coordstring);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring),"%s, a %d year old %s. %s Accent. Has $%d", coordstring, pInfo[targetid][Age],(pInfo[targetid][Sex]==0)?("Male"):("Female"),pInfo[targetid][Accent], GetPlayerMoney(targetid));
SendClientMessage(playerid, COLOR_WHITE, coordsstring);
format(coordsstring, sizeof(coordsstring),"Located at x:%f,y:%f,z:%f.", px, py, pz);
SendClientMessage(playerid, COLOR_WHITE, coordsstring);
format(coordsstring, sizeof(coordsstring),"Level %d with %d experience. Health: %f.", pInfo[targetid][Level], pInfo[targetid][Experience], health);
SendClientMessage(playerid, COLOR_WHITE, coordsstring);
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
}
}