17.08.2010, 10:01
Hey guys I wanna make gamemode where on playerconnect textdraw shows but with amount of deaths and kills here is what I did :
Is this right?
Код:
public OnGameModeInit() { ////////////////////////////////STATISTICS////////////////////////////////////// new kills; kills = PlayerInfo[playerid][Kills]; Textdraw1 = TextDrawCreate(496.000000, 129.000000, "Deaths:"); TextDrawBackgroundColor(Textdraw1, 255); TextDrawFont(Textdraw1, 1); TextDrawLetterSize(Textdraw1, 0.430000, 1.400000); TextDrawColor(Textdraw1, -1); TextDrawSetOutline(Textdraw1, 1); TextDrawSetProportional(Textdraw1, 1); Textdraw2 = TextDrawCreate(496.000000, 117.000000, "Kills:"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 1); TextDrawLetterSize(Textdraw2, 0.509999, 1.400000); TextDrawColor(Textdraw2, -1); TextDrawSetOutline(Textdraw2, 1); TextDrawSetProportional(Textdraw2, 1); Textdraw3 = TextDrawCreate(557.000000, 118.000000, "10000");//DEATHS TextDrawBackgroundColor(Textdraw3, 255); TextDrawFont(Textdraw3, 3); TextDrawLetterSize(Textdraw3, 0.509999, 1.100000); TextDrawColor(Textdraw3, -1); TextDrawSetOutline(Textdraw3, 1); TextDrawSetProportional(Textdraw3, 1); Textdraw4 = TextDrawCreate(557.000000, 131.000000, "10000");//KILLS TextDrawBackgroundColor(Textdraw4, 255); TextDrawFont(Textdraw4, 3); TextDrawLetterSize(Textdraw4, 0.509999, 1.100000); TextDrawColor(Textdraw4, -1); TextDrawSetOutline(Textdraw4, 1); TextDrawSetProportional(Textdraw4, 1); ////////////////////////////////////////////////////////////////////////////////