Adding Timer In Command
#1

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.
Reply
#2

Anyone know how to do this?
Reply
#3

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

You Use
pawn Код:
//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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)