Time and weather, /time /weather
#1

How do I make it?
I really don't know, thanks

for the timer, i want like /time 00 for 00:00h and /weather -1 just like the rcon weather, for example: /rcon weather 5 and that all things of weather, thanks.
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=16334

See this?
Reply
#3

That's not what I've asked for. I want a command that I can type /settime or /time or "/weather" to set the time, I don't wanna have a real time.
Reply
#4

Do you use ZCMD or strcmp or any other command processor?
Reply
#5

PHP код:
CMD:time(playeridparams[])
{
    new 
NewTime;
    if(
sscanf(params"i"NewTime)) return SendClientMessage(playeridCOLOR_WHITE"/time [NewTime]");
    
SetWorldTime(NewTime);
    return 
1;

PHP код:
CMD:weather(playeridparams[])
{
    new 
NewWeather;
    if(
sscanf(params"i"NewWeather)) return SendClientMessage(playeridCOLOR_WHITE"/weather [NewWeather]");
    
SetWeather(NewWeather);
    return 
1;

Reply
#6

Without sscanf:

pawn Код:
CMD:time(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, -1, "Usage: /Time < ID >");

    return SetPlayerTime(playerid, strval(params), 0);
}

CMD:weather(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, -1, "Usage: /Weather < ID >");

    return SetPlayerWeather(playerid, strval(params));
}
Reply
#7

Can you please make it for an easy option such as "a_samp" theory.
Not Zcmd,Ycmd and others, thanks.
Reply
#8

Can somone script these 2 CMDS in strcmp format for me. BIG THANKS!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)