02.01.2010, 22:18
here Is the Deaths And Stats
pawn Код:
//At the top
new Text:LoggedInAs[MAX_PLAYERS];
new kill[MAX_PLAYERS];
new Death[MAX_PLAYERS];
//at OnPlayerConnect
LoggedInAs[playerid] = TextDrawCreate(497.000000,111.000000, " ");
//+ some other crap for the textdraw. (Proportional etc.)
CheckLoggedInAs(playerid);
//at OnPlayerDisconnect
TextDrawDestroy(LoggedInAs[playerid]);
//at OnPlayerSpawn
TextDrawShowForPlayer(playerid,LoggedInAs[playerid]);
//Then here at OnPlayerDeath
kill[killerid]++;
Death[playerid]++;
CheckLoggedInAs(playerid);
//And...
Re: [HELP] Need help - kill/death textdraw
« Reply #5 on: January 02, 2010, 01:21:22 AM »
Reply with quoteQuote
Code:
//At the top
forward CheckLoggedInAs(playerid);
new Text:LoggedInAs[MAX_PLAYERS];
new kill[MAX_PLAYERS];
new Death[MAX_PLAYERS];
//at OnPlayerConnect
LoggedInAs[playerid] = TextDrawCreate(497.000000,111.000000, " ");
//+ some other crap for the textdraw. (Proportional etc.)
CheckLoggedInAs();
//at OnPlayerDisconnect
TextDrawDestroy(LoggedInAs[playerid]);
//at OnPlayerSpawn
TextDrawShowForPlayer(playerid,LoggedInAs[playerid]);
//Then here at OnPlayerDeath
kill[killerid]++;
Death[playerid]++;
CheckLoggedInAs();
//And as a public..
public CheckLoggedInAs(playerid)
{
new string[128];
format(string, sizeof(string), "~r~Deaths ~b~%d~w~ - ~g~Kills ~b~%d" , kill[playerid], Death[playerid]);
TextDrawSetString(Text:LoggedInAs[playerid], string);
return 1;
}
{