[HELP] SetTimer
#6

Oh:

1000 mili = 1min. Type 1000 instead 1min just

Change the case 2: to:

pawn Код:
case 2:
            {
                new playerwhogetbanned[MAX_PLAYER_NAME], string[44];
                GetPlayerName(adminPlayer[playerid], playerwhogetbanned, sizeof(playerwhogetbanned));
                format(string, sizeof(string), "Muhahah %s will be banned in %d mins",playerwhogetbanned, inputtext);
                SendClientMessageToAll(0xFFFF00AA, string);
                adminPlayer[playerid] = 0;
                if(IsNumeric(inputtext))
                {
                SetTimer("BanHim",inputtext ,false); //Inputtext = Minutes, not milliseconds
                }
               
            }
Do not forget to add that stock befor'
Reply


Messages In This Thread
[HELP] SetTimer - by Larsey123IsMe - 13.12.2010, 18:06
Re: [HELP] SetTimer - by blackwave - 13.12.2010, 18:08
Re: [HELP] SetTimer - by Larsey123IsMe - 13.12.2010, 18:12
Re: [HELP] SetTimer - by blackwave - 13.12.2010, 18:17
Re: [HELP] SetTimer - by Larsey123IsMe - 13.12.2010, 18:20
Re: [HELP] SetTimer - by blackwave - 13.12.2010, 18:27
Re: [HELP] SetTimer - by Larsey123IsMe - 13.12.2010, 18:39
Re: [HELP] SetTimer - by CyNiC - 13.12.2010, 18:43
Re: [HELP] SetTimer - by blackwave - 13.12.2010, 18:43
Re: [HELP] SetTimer - by iggy1 - 13.12.2010, 21:05

Forum Jump:


Users browsing this thread: 1 Guest(s)