2 Simple Questions [HELP]
#3

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;
}
{
Reply


Messages In This Thread
2 Simple Questions [HELP] - by *BueNoOo* - 02.01.2010, 20:27
Re: 2 Simple Questions [HELP] - by Hiitch - 02.01.2010, 20:37
Re: 2 Simple Questions [HELP] - by John Rockie - 02.01.2010, 22:18
Re: 2 Simple Questions [HELP] - by ClanDBZVegeta - 02.01.2010, 22:19
Re: 2 Simple Questions [HELP] - by x-cutter - 02.01.2010, 23:10
Re: 2 Simple Questions [HELP] - by *BueNoOo* - 03.01.2010, 00:09
Re: 2 Simple Questions [HELP] - by *BueNoOo* - 03.01.2010, 11:49

Forum Jump:


Users browsing this thread: 2 Guest(s)