29.11.2015, 20:29
oh then you showld make a string with variables
code:
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;
}
///////////////