[HELP] - Wanted Player enter a Checkpoint.
#1

Hello, that's me again

i'm trying to make a simple Roleplay server. for me and my friends!

So i decided to add a small checkpoint somewhere .

what i wanted to know is...

if a wanted player enters that checkpoint he goes to jail :-

if 1 star wanted = 20 seconds

if 2 stars wanted = 40 seconds

if 3 stars wanted = 70 seconds

if 4 stars wanted = 160 seconds

if 5 stars wanted 350 seconds

if 6 stars wanted = 600 seconds

would be so wonderful if someone could help me with this , thanks alot


Cheers up!
Reply
#2

try with timer maybe ?
Reply
#3

Please?
Reply
#4

use
pawn Код:
new pJailed[MAX_PLAYERS];
          new wantedlevel[MAX_PLAYERS];
          wantedlevel[playerid] = GetPlayerWantedLevel(playerid);
then when player enter checkpoint
pawn Код:
if(wantedlevel[playerid] == 1)
{
pJailed[playerid] = 1;
SetTimerEx("UnJailPlayer", 72000, false, "i", playerid);
}
and then
pawn Код:
forward UnJailPlayer(playerid);
public UnJailPlayer(playerid)
{
    pJailed[playerid] = 0;
    return 1;
}
Reply
#5

Thanks alot : )
Reply
#6

well not working

Bump!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)