[Help]Keep on changing
#1

I type /tod 0 0
It set to night then suddenly change to day again..?
I dont know why..
pawn Код:
CMD:tod(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1337)
    {
        new string[128], time;
        if(sscanf(params, "d", time)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /tod [time] (0-23)");

        SetWorldTime(time);
        gTime = time;
        format(string, sizeof(string), "Time set to %d:00.", time);
        BroadCast(COLOR_GRAD1, string);
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    }
    return 1;
}
Reply


Messages In This Thread
[Help]Keep on changing - by Tamao_Serizawa - 07.01.2012, 02:11
Re: [Help]Keep on changing - by TheLonelyMoo - 07.01.2012, 02:56
Re: [Help]Keep on changing - by Tamao_Serizawa - 07.01.2012, 03:22
Re: [Help]Keep on changing - by TheLonelyMoo - 07.01.2012, 03:26
Re: [Help]Keep on changing - by Tamao_Serizawa - 07.01.2012, 03:39
Re: [Help]Keep on changing - by TheLonelyMoo - 07.01.2012, 03:42

Forum Jump:


Users browsing this thread: 1 Guest(s)