29.09.2013, 12:34
You could put a loop inside OnGameModeInit
Like this
Like this
pawn Код:
public OnGameModeInit()
{
for(new i = 0; i < MAX_PLAYERS; i++) // Non #include <foreach>
{
Textdraw14 = TextDrawCreate(501.714233, 102.400001, "Kills: ~w~%d", pInfo[playerid][Kills]);
TextDrawLetterSize(Textdraw14, 0.362760, 1.382398);
TextDrawAlignment(Textdraw14, 1);
TextDrawColor(Textdraw14, -1);
TextDrawSetShadow(Textdraw14, 0);
TextDrawSetOutline(Textdraw14, 1);
TextDrawBackgroundColor(Textdraw14, 51);
TextDrawFont(Textdraw14, 1);
TextDrawSetProportional(Textdraw14, 1);
}
return 1;
}
public OnGameModeInit()
{
foreach(Player, i) // With #include <foreach>
{
Textdraw14 = TextDrawCreate(501.714233, 102.400001, "Kills: ~w~%d", pInfo[playerid][Kills]);
TextDrawLetterSize(Textdraw14, 0.362760, 1.382398);
TextDrawAlignment(Textdraw14, 1);
TextDrawColor(Textdraw14, -1);
TextDrawSetShadow(Textdraw14, 0);
TextDrawSetOutline(Textdraw14, 1);
TextDrawBackgroundColor(Textdraw14, 51);
TextDrawFont(Textdraw14, 1);
TextDrawSetProportional(Textdraw14, 1);
}
return 1;
}