How do I do something like these?
#1

1) Add the box and when someone gets a kill it updates, when they die it reset's to 0.

2) Do that exactly but how would I make it so you can change the score at any time ingame?!

Thanks.
Reply
#2

pawn Код:
new Kills[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
     Kills[killerid]++;
     Kills[playerid] = 0;
     return 1;
}

public OnPlayerUpdate(playerid)
{
     new string[128];
     format(string,sizeof(string),"Kills: %d",kills[playerid]);
     TextDrawSetString(textdrawid,string);
     return 1;
}
The boxes are easy to create, using textdraw editor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)