SA-MP Forums

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

Thread Tools Display Modes
Old 25/11/2010, 11:00 PM   #1
Big Clucker
Join Date: Aug 2010
Posts: 160
Reputation: 0
Default Adding Timer In Command

How can I add a timer into a command? I want the command to work for 5 minutes, and then the command should disable itself for 30 minutes. So, how can this be created?

Also, is there anyway I can limit the speed of a vehicle? Meaning, if I'm going 60, the car shouldn't gain any more speed.
scripter1 is offline  
Old 27/11/2010, 02:53 PM   #2
Big Clucker
Join Date: Aug 2010
Posts: 160
Reputation: 0
Default Re: Adding Timer In Command

Anyone know how to do this?
scripter1 is offline  
Old 27/11/2010, 05:19 PM   #3
zSuYaNw's Avatar
Join Date: Apr 2010
Location: Santa Catarina
Posts: 6,779
Reputation: 601
Default Re: Adding Timer In Command

you to usse 'SetTimers' == 'LAG'

You Use
new bool:BlockCommand[You_Slots];

// OnPlayerCommandText
if(BlockCommand[playerid] == true && strcmp(cmdtext,"/unblock", true)) return SendClientMessage(playerid,COLOR_IR_HERE,"[INFO] COMMANDS BLOCKED, Use /unbloc to Unblock Commands.");

if(!strcmp(cmdtext,"/unblock", true))
     BlockCommand[playerid] = false;// Unblock Command
     return 1;
if(!strcmp(cmdtext,"/x1", true)) // This is exemple.
     BlockCommand[playerid] = true;// Blocking command
     return 1;
zSuYaNw 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
[HELP] A timer on a command(triggered, whatever) + find command Biesmen Help Archive 5 07/10/2010 08:01 PM
Adding to this command? jameskmonger Help Archive 2 29/01/2010 03:55 PM
Help with adding nos to the vehicle you are currently in with the command /nos speedruntrainer Help Archive 4 24/08/2009 01:49 AM
Adding a timer to /jail Mattjones17 Help Archive 4 19/07/2009 06:25 PM

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

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