Timer help.
#1

Hey i wanted to set a timer and i wanted to know where to put this code, and also where do i put the message i want to send in command form. Thanks for help! (I love you too haters <3)

forward message(second, msg[]);

public OnGameModeInit()
{
print("Starting timer...");
SetTimerEx("message", 1000, false, "is", 1337, "hello!");
}

public message(second, msg[])
{
printf("%i second has passed, also we have a message: %s", second, msg);
return 1;
}
Reply
#2

There is already a ongamdemodeinit.
So put
pawn Код:
print("Starting timer...");
SetTimerEx("message", 1000, false, "is", 1337, "hello!");
to your ongamemodeinit

the
pawn Код:
forward message(second,msg[]);
At the top of your scripts below your a_samp include

the public message anywhere in your script.
I recommend at the bottom
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)