SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 15/06/2010, 04:48 PM   #1
ArTisT
Big Clucker
 
Join Date: Mar 2009
Posts: 99
Reputation: 0
Default [HELP]DM Timer

Quote:
if(strcmp(cmd, "/rocketdm", true) == 0)
{
if(RocketPlaying == 1)
{
SendClientMessage(playerid, RED, "The DM Mission is on progress. Wait until it finishes.");
return 1;
}
if(PlayerInGame[playerid] == 1)
{
SendClientMessage(playerid, RED, "You are already in a minigame.");
return 1;
}
if(RocketOn == 0)
{
RocketOn = 1;
PlayerInGame[playerid] = 1;
PlayerInRocket[playerid] = 1;
RocketRank = 1;
RocketDM = SetTimer("RocketStart", 20000, 0);
SendClientMessageToAll(GREEN,"Rocket DM ~g~is to start in 20 seconds.~n~Use ~b~/joindm ~g~to join it.");
SendClientMessageToAll(GREEN,"Rocket DM has started, use /rocketdm to join it.");
return 1;
}
else if(RocketOn == 1 && RocketRank <= 15)
{
PlayerInRocket[playerid] = 1;
RocketRank++;
SendClientMessage(playerid, GREEN,"You have joined to the DM Mission.");
return 1;
}
else if(RocketOn == 1 && RocketRank == 16)
{
SendClientMessage(playerid,RED,"The DM Mission is full. Wait for the next round.");
}
return 1;
}

I want that ppl can use that cmd every 30 mins like a mini mission how can i do it ?
ArTisT is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timer bartje01 Help Archive 6 17/03/2010 04:43 PM
PLS help with TIMER DRIFT_HUNTER Help Archive 4 16/03/2010 03:18 PM
Timer help TouR Help Archive 21 07/12/2009 07:39 PM
C4 TIMER Frankox Help Archive 15 09/07/2009 12:21 PM
How to add this onto a timer? JoeDaDude Help Archive 5 28/05/2009 06:53 PM


All times are GMT. The time now is 03:29 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.