SA-MP Forums Archive
Some help , please - 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: Some help , please (/showthread.php?tid=493898)



Some help , please - bizzybg - 10.02.2014

Hello . I need help .

How to make players to be able to change their time/weather by their selves ?

And can someone give me basic and easier register/login system with nothing special for advanced scripters , that I could edit by my own .

Thanks in advance .


Re: Some help , please - bizzybg - 12.02.2014

bump


Re: Some help , please - Golimad - 12.02.2014

Hello sir, here is a tutorial for register and login system : https://sampforum.blast.hk/showthread.php?tid=273088
You have to change #define Dialogs to a higher value in case you have already defined some dialogs to 1 , 2 , 3 and 4.
Also about changing time / weather, I advise you to use Zcmd on your script for Commands.
pawn Код:
#include <zcmd> // in the top of your script

CMD:mytime(playerid, params[])
{
        new time;
        if (!sscanf(params, "i", time))
        {
               new message[64];
               SetPlayerTime(playerid, time, 0);
           format(message, sizeof(message), "Your time has been set to %i.", time);
               SendClientMessage(playerid, 0x00FF00FF, message);
        }
        else SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /mytime <hour>");
        return 1;
}
CMD:myweather(playerid, params[])
{
        new time;
        if (!sscanf(params, "i", weather))
        {
               new message[64];
               SetPlayerWeather(playerid, weather);
           format(message, sizeof(message), "Your weather has been set to %i.", weather);
               SendClientMessage(playerid, 0x00FF00FF, message);
        }
        else SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /myweather <weatherID>");
        return 1;
}