Jail Game text.
#3

pawn Код:
new JailText[MAX_PLAYERS];

public JailTime()
{
    new string[128];   
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {  
        if(JailText[playerid] > 0)
        {
            JailText[playerid]--;      
            format(string, sizeof(string), "Jail time: %d seconds left !", JailText[playerid]);
            GameTextForPlayer(playerid, string, 1000, 4);
        }
    }  
    return 1;
}
EDIT: There where the player should be jailed you should write how much ' JailText[playerid] ' is.

Example:

pawn Код:
JailText[playerid] = 300;
Reply


Messages In This Thread
Jail Game text. - by Shetch - 19.02.2011, 03:20
Re: Jail Game text. - by Shetch - 19.02.2011, 03:37
Re: Jail Game text. - by Serbish - 19.02.2011, 03:39
Re: Jail Game text. - by Shetch - 19.02.2011, 03:48
Re: Jail Game text. - by Shetch - 19.02.2011, 04:09
Re: Jail Game text. - by Serbish - 19.02.2011, 12:18
Re: Jail Game text. - by Shetch - 19.02.2011, 12:58
Re: Jail Game text. - by Serbish - 19.02.2011, 15:12

Forum Jump:


Users browsing this thread: 2 Guest(s)