public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );
return 1;
}
new Text:Textdraw0;
public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(460, 424, "Score:~r~");
TextDrawBackgroundColor(Textdraw0, 170);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.4, 2.4);
TextDrawColor(Text:Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
return 1;
}
public OnPlayerSpawn( playerid )
{
TextDrawShowForPlayer( playerid, Textdraw0 );
return 1;
}
public OnPlayerUpdate( playerid )
{
new string[ 105 ];
new score;
score = GetPlayerScore(playerid);
format( string, sizeof string, "Score:~r~ %d", score );
TextDrawSetString(Textdraw0, string);
return 1;
}