Textdraw showing wantedlevel
#4

oh then you showld make a string with variables
code:
pawn Код:
new Wanted[MAX_PLAYERS];
new PlayerText:Text;

//OnPlayerConnect

Text = CreatePlayerTextDraw(playerid, 480.0, 105.0, " ");
PlayerTextDrawFont(playerid, Text, fontid);
PlayerTextDrawColor(playerid, Text, color);
/*
more like shadow proportional and more if you want...
*/

SetTimerEx("LEVELCHECK", 1000, true, "i", playerid);
PlayerTextDrawShow(playerid, Text);
/////////////////////////////

//////////////////
forward LEVELCHECK(playerid);

public LEVELCHECK(playerid)
{
    new Str[128];
    format(Str, sizeof(Str), "Wanted level: %d", Wanted[playerid]);
    PlayerTextDrawSetString(playerid, Text, Str);
    return 1;
}
////////////////////

//////CMD//////
CMD:test(playerid, params[])
{
    Wanted[playerid] = 1; //or Wanted[playerid] += 1;
    return 1;
}
///////////////
Reply


Messages In This Thread
Textdraw showing wantedlevel - by yvoms - 29.11.2015, 20:02
Re: Textdraw showing wantedlevel - by UltraScripter - 29.11.2015, 20:16
Re: Textdraw showing wantedlevel - by yvoms - 29.11.2015, 20:19
Re: Textdraw showing wantedlevel - by UltraScripter - 29.11.2015, 20:29
Re: Textdraw showing wantedlevel - by yvoms - 30.11.2015, 11:24
Re: Textdraw showing wantedlevel - by UltraScripter - 30.11.2015, 12:01
Re: Textdraw showing wantedlevel - by yvoms - 30.11.2015, 12:29
Re: Textdraw showing wantedlevel - by yvoms - 30.11.2015, 12:38
Re: Textdraw showing wantedlevel - by yvoms - 30.11.2015, 13:15
Re: Textdraw showing wantedlevel - by UltraScripter - 30.11.2015, 14:29

Forum Jump:


Users browsing this thread: 3 Guest(s)