You can do it by using Textdraw
Try This :-
New Variable,
Код:
new Text:WastedTextDraw;
On OnGameModeInit Callback,
pawn Код:
public OnGameModeInit()
{
WastedTextDraw = TextDrawCreate(190.0, 190.0, "WASTED");
return 1;
}
On OnPlayerDeath Callback,
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
TextDrawShowForPlayer(playerid, WastedTextDraw);
return 1;
}
On OnPlayerSpawn Callback,
pawn Код:
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, WastedTextDraw);
return 1;
}
EDIT :-
C for Server Commands Textdraw,
Try This :-
New Variable,
Forward and Public Callback for CForSCMDs Textdraw Hide For Player,
pawn Код:
forward HCForSCMDs(playerid);
public HCForSCMDs(playerid)
{
TextDrawHideForPlayer(playerid, CForSCMDs);
}
On OnPlayerCommandPerformed Callback,
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
CForSCMDs = TextDrawCreate(490.000000, 0.000000, "Type /c for Server Commands.");
return SetTimerEx("HCForSCMDs", 3000, 0, "d", playerid);
}
return 1;
}