SA-MP Forums Archive
How to make...(read) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to make...(read) (/showthread.php?tid=300229)



How to make...(read) - [Funky]Secret - 29.11.2011

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


Re: How to make...(read) - Kingunit - 29.11.2011

https://sampwiki.blast.hk/wiki/SetPlayerWeather
https://sampwiki.blast.hk/wiki/SetPlayerTime


Re: How to make...(read) - nuriel8833 - 29.11.2011

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;
    }