Clock going to 25 and higher
#4

Try this
pawn Код:
CMD:settime(playerid,params[]) {
    if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /settime [hour]");
        new name[MAX_PLAYER_NAME], mestring[128];
        new time = strval(params);
        if(time > 24) return SendClientMessage(playerid, red, "ERROR: Invalid hour");
        for(new i = 0; i < MAX_PLAYERS; i++) {
            if(IsPlayerConnected(i)) {
                SetPlayerTime(i, time, 0);}}
        GetPlayerName(playerid, name, sizeof(name));
        format(mestring, sizeof(mestring), "%s has changed San Andreas Time to %d", name, time);
        SendClientMessageToAll(GRAY, mestring);
    return 1;}
Reply


Messages In This Thread
Clock going to 25 and higher - by stix - 08.12.2012, 22:45
Re: Clock going to 25 and higher - by LarzI - 08.12.2012, 22:55
Respuesta: Clock going to 25 and higher - by stix - 08.12.2012, 23:18
Re: Clock going to 25 and higher - by Ironboy - 08.12.2012, 23:37
Respuesta: Clock going to 25 and higher - by stix - 08.12.2012, 23:47

Forum Jump:


Users browsing this thread: 1 Guest(s)