15.09.2010, 00:56
Any one know how to display strings in text draws ? like showing joining and leaving messages in text draws .
format(string, sizeof(string), "%s has joined the server.", playernamehere);
TextDrawSetString(textdrawname, string);
new playernamehere[MAX_PLAYER_NAME];
GetPlayerName(playerid, playernamehere, MAX_PLAYER_NAME);
new Text:Textdraw2;
under onplayerdeath
TextDrawShowForAll(Killing);
new playernamehere[MAX_PLAYER_NAME];
new string[128];
new killername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playernamehere, MAX_PLAYER_NAME);
GetPlayerName(killerid, killername, sizeof(killername));
format(string, sizeof(string), " LATEST KILLS : %s has Pwned %d.", playernamehere,killername);
Killing = TextDrawCreate(-1.000000, 431.000000, string);
TextDrawBackgroundColor(Killing, 255);
TextDrawFont(Killing, 2);
TextDrawLetterSize(Killing, 0.300000, 1.000000);
TextDrawColor(Killing, 65535);
TextDrawSetOutline(Killing, 1);
TextDrawSetProportional(Killing, 1);
TextDrawUseBox(Killing, 1);
TextDrawBoxColor(Killing, -16776961);
TextDrawTextSize(Killing, 638.000000, 0.000000);