Arrest command
#1

fixed
Reply
#2

I may be able to supply you with a /arrest that I made with the timer and everything?
Reply
#3

Make a time variable
Reply
#4

Quote:
Originally Posted by thomaswilliams
Посмотреть сообщение
I may be able to supply you with a /arrest that I made with the timer and everything?
If you don't mind giving out to me then i would be glad
EDIT: Any help
Reply
#5

bump sorry any idea?
Reply
#6

In my script i made a PlayerInfo [playerid][pJailTime] in enum.
On your sscanf add:

Quote:

new time;
if(sscanf(params, "ud", ID, time)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /ar [ID] [minutes]");

then on your command /arrest:
Quote:

PlayerInfo[ID][pJailTime] = time * 60;

for counting down the jailtime i used y_timers

Quote:

Timer:JailTimer[1000]() // The tickrate 1 second
{
foreach(Player, i)
{
if(PlayerInfo[i][pJailTime] > 0)
{
PlayerInfo[i][pJailTime] --;
}
}
}

then set when pJailTime == 0 so set a spawn point.
I just gave the idea.
Reply
#7

Quote:
Originally Posted by Lidor124
Посмотреть сообщение
In my script i made a PlayerInfo [playerid][pJailTime] in enum.
On your sscanf add:



then on your command /arrest:


for counting down the jailtime i used y_timers



then set when pJailTime == 0 so set a spawn point.
I just gave the idea.
giving the ability to cops to set their own time for jail it would be abusive... they could put long time... for civilians
Uh other possible way of how i could put the timer for jail?
Reply
#8

Bump help please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)