09.12.2010, 19:33
Give this a try
That should be better.
pawn Код:
new DeathsCount = 30;
public OnGameModeInit()
{
DeathCounter = TextDrawCreate(10.0, 130.0, "Victims so far: ~n~Needed for next bombsmuggle: 30");
TextDrawUseBox(DeathCounter, 0);
TextDrawColor(DeathCounter, 0x008040FF );
TextDrawSetOutline(DeathCounter, 1);
TextDrawAlignment(DeathCounter, 1);
TextDrawLetterSize(DeathCounter, 0.850, 2.000);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, DeathCounter);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
static
killstr[52];
DeathsCount--;
format(killstr, 4, "Victims so far: ~n~Needed for next bombsmuggle:%d", DeathsCount);
TextDrawSetString(DeathCounter, killstr);//set the string here
if(DeathsCount == 0)
{
SetCheckpointForAll(cp1,681.3374,-463.3429,22.5705,2.0);
}
return 1;
}