01.01.2010, 23:44
Quote:
|
Originally Posted by John Rockie
Change This
Код:
format(string, sizeof(string), "~r~Deaths ~b~%d~w~ - ~g~Kills ~b~%d" , kill[playerid], Death[playerid]); Код:
format(string, sizeof(string), "~g~Kills~b~%d~w~ - ~r~Deaths ~b~%d" , kill[playerid], Death[playerid]); ![]() |
The whole code again:
Код:
//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...
stock CheckLoggedInAs(playerid)
{
new string[128];
format(string, sizeof(string), "~r~Deaths ~b~%d~w~ - ~g~Kills ~b~%d", Death[playerid], kill[playerid]);
TextDrawSetString(Text:LoggedInAs[playerid], string);
return 1;
}


