How to make...(read)
#1

Hi^
I am new on forum.sa-mp.com
So...
How to make a /t (/time),and select you hour
and /w (weather) ?



sorry for my stupid english i m romanian
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerWeather
https://sampwiki.blast.hk/wiki/SetPlayerTime
Reply
#3

pawn Код:
new tmp[256],cmd[256];
   cmd = strtok(cmdtext, idx);

    if(strcmp(cmd, "/settime", true)==0)
    {
        if(!IsPlayerAdmin(playerid)) return 0;
        else
        tmp = strtok(cmdtext, idx);
        new time;
    time = strval(tmp);
        if(!strlen(tmp)) return SendClientMessage(playerid,0xFFFFFFFF, "USAGE: /settime [0-24]");
        format(string, sizeof(string), "The Admin has set the time to %d.", time);
        SendClientMessageToAll(0xFFFFFFFF, string);
        SetWorldTime(time);
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)