24.02.2008, 15:55
Thx Pinder xD
Originally Posted by GaMeouT
HOW TO PUT THE PLAYER TO STAY PUT UP TO THE MINUTE end?
|
forward CountTimer();
new Count[MAX_PLAYERS];
public OnGameModeInit()
{
SetTimer("CountTimer",1000,1);
}
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] --;
}
}
}
public OnPlayerDeath(playerid,killerid,reason)
{
Count[playerid] = 60; // Change it to the number the counter starts at
}