28.01.2013, 23:56
Код:
new Text:Textdraw4;
Код:
new Text:Scores[MAX_PLAYERS];
Код:
public OnPlayerDeath(playerid, killerid, reason) { SetPlayerScore(playerid, GetPlayerScore(killerid)+ 1); new str[100]; format(str, sizeof(str),"Score: %d", GetPlayerScore(killerid)); TextDrawSetString(Scores[killerid], str); TextDrawShowForPlayer(killerid, Scores[killerid]); return 1; }
Код:
public OnGameModeInit() { Textdraw4 = TextDrawCreate(407.000000, 433.000000, " "); TextDrawBackgroundColor(Textdraw4, 421075455); TextDrawFont(Textdraw4, 1); TextDrawLetterSize(Textdraw4, 0.230000, 1.400000); TextDrawColor(Textdraw4, -1); TextDrawSetOutline(Textdraw4, 1); TextDrawSetProportional(Textdraw4, 1); return 1; }
Код:
public OnPlayerSpawn(playerid) { TextDrawShowForPlayer(playerid, Textdraw4); return 1; }
PHP код:
Pronto,pode testar que vai funcionar (: