SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 26/11/2010, 12:00 AM   #1
scripter1
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, 03:53 PM   #2
scripter1
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, 06:19 PM   #3
zSuYaNw
Godfather
 
zSuYaNw's Avatar
 
Join Date: Apr 2010
Location: Santa Catarina
Posts: 5,703
Reputation: 428
Default Re: Adding Timer In Command

Hi,
you to usse 'SetTimers' == 'LAG'

You Use
pawn Code:
//UP
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;
}
__________________
SuYaNw
Suyann12
G. SuYaNw Dácio
História
Garfield
Grupo do Fórum SA-MP no WhatsApp PM*
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 04: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 05:36 AM.


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