29.02.2008, 15:15
for the counter...
Something like that would do it
.
pawn Код:
forward CountTimer();
new Count[MAX_PLAYERS];
pawn Код:
public OnGameModeInit()
{
SetTimer("CountTimer",1000,1);
}
pawn Код:
public CountTimer()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Count[i] > 0)
{
new str[256];
format(str,sizeof(str),"~y~You will respawn in~n~~b~%d ~g~seconds",Count[i]);
GameTextForPlayer(i,str,3000,3);
Count[i] --;
}
}
}
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
Count[playerid] = 60; // Change it to the number the counter starts at
}
.

