Cool-Down Timerand Announces?! -
HardstylerNiko - 15.08.2010
Hey guys, it's me again xD
But this Time isn't it a Bug or something like that :P
1.: I have some commands and Pickups, wich allows you to go to a secret Place, and i need a cool Down Timer for it!
One of theat cmd is this:
Код:
if (strcmp("/underground", cmdtext, true, 10) ==0)
{
SendClientMessage(playerid,BLUE,"You're now in the Underground. Be carefull, an earthquake might detsroy everything...");
SetPlayerPos(playerid,2466.0740,-1658.8375,-51.4123);
SetPlayerFacingAngle(playerid,104.3511);
return 1;
}
If i want now a cool down timer with , for example, 60 seconds, what do i have to do?

I have no idea *cry*
2.: I want to make a think like a "Stunt Announcer" (in the server config file is Announcments on). I add them already, but nothing happens >.<
I have the announces at LuxAdmin and at my GM, but both isn't working >.<
GM:
Код:
new RandMessages[][] =
{
"Add our IP (not aviable yet >.<) to your Favourites list, so you can always play!",
"Please follow the /rules! We don't want to warn/kick/ban you =)",
"Dont ask how to be Admin or VIP - visit http://atdm.smfforfree3.com/index.php",
"Visit our website: http://atdm.smfforfree3.com/index.php",
"Like The Server? Tell the Forum URL to your Freinds!",
"Enjoy the Stay at 'Awesome Team Death Matches' made by [COD5]Niko[SA]"
};
forward RandMessagesx();
public RandMessagesx()
{
SendClientMessageToAll(COLOR_ORANGE, RandMessages[random(sizeof(RandMessages))]);
return 1;
}
LuxAdmin:
Код:
//==============================================================================
// -> Random Messages (Announcements)
//(Only if "Announcements" is enable in Config file)
//==============================================================================
new RandomMessages[][] =
{
"Suspect of ~r~Cheaters? ~w~Use ~y~/report [id] [Reason]",
"Respect ~b~all server ~y~Rules and Admins!",
"Get a ~g~VIP ~w~Account ~b~... apply at Forum: http://atdm.smfforfree3.com/index.php! For access lot of new ~y~features!",
"You not visited we ~g~site?~w~ Visit now: ~p~http://atdm.smfforfree3.com/index.php",
"Add our IP (not aviable yet >.<) to your Favourites list, so you can always play!",
"Please follow the /rules! We don't want to warn/kick/ban you =)",
"Dont ask how to be Admin or VIP - visit http://atdm.smfforfree3.com/index.php",
"Visit our website: http://atdm.smfforfree3.com/index.php",
"Like The Server? Tell the Forum URL to your Freinds!",
"Enjoy the Stay at 'Awesome Team Death Matches' made by [COD5]Niko[SA]"
};
What's the problem? >.<
Re: Cool-Down Timerand Announces?! -
rbN. - 15.08.2010
@ 2, Did you check your Config.ini file of LuxAdmin? It's inside scriptfiles/LuxAdmin/Config.
If it's this:
Change it to this:
Or ingame, just do /lmenu --> enable --> Announcements (If i'm correct lol)
Re: Cool-Down Timerand Announces?! -
Finn - 15.08.2010
1. What do you mean by cool down timer?
2. Have you set the timer somewhere in your script?
pawn Код:
public OnGameModeInit()
{
SetTimer("RandMessagesx", 60000, true);
}
"RandMessagesx" = what function to call.
60000 = the time in miliseconds.
true = repeat timer (true/false)
Re: Cool-Down Timerand Announces?! -
HardstylerNiko - 15.08.2010
@ RobinOwnz:
Yes, i checked it and yes, it's at 1

I'll try the "lmenu" thing, but i think it won't work =(
@ Finn: I don't get it...
Okay, lemme explain :P
You will walk into that Pickup and you will get a tele command. At the moment you got teleported a cool-down timer starts, soo he can't use that teleport cmd again in the next 5 mins. After the 5 mins, a mesage should appear at chat, the the cmd is now aviable again...
Hard thing, i know, but if i don't get that timer, the server will fuck up xD
Thanks for your help =)