18.12.2014, 19:15
(
Последний раз редактировалось SrDonalds; 18.12.2014 в 19:58.
)
Galera, alguem pode me ajuda com isso aqui? estou tentando criar uma textdraw que mostre o nome de quem te matou, acho que faзo tudo certo mais na hora de entrar no server a palavra nгo aparece. + REP
pawn Код:
new Text:tematou,
public OnGameModeInit()
{
tematou = TextDrawCreate(00.000000, 000.000000, " ");
TextDrawAlignment(tematou, 0);
TextDrawBackgroundColor(tematou, 000);
TextDrawFont(tematou, 0);
TextDrawLetterSize(tematou, 0.000000, 0.000000);
TextDrawColor(tematou, 0);
TextDrawSetOutline(tematou, 0);
TextDrawSetProportional(tematou, 0);
TextDrawSetShadow(tematou, 0);
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
new killernick[24];
GetPlayerName(killerid, killernick, sizeof(killernick));
new string[128];
format(string, sizeof(string), "%s te matou", killernick);
TextDrawShowForPlayer(playerid, tematou);
}
}