SA-MP Forums Archive
[HELP] - Wanted Player enter a Checkpoint. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] - Wanted Player enter a Checkpoint. (/showthread.php?tid=426920)



[HELP] - Wanted Player enter a Checkpoint. - Riven - 30.03.2013

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!


Re: [HELP] - Wanted Player enter a Checkpoint. - MrTinder - 30.03.2013

try with timer maybe ?


Re: [HELP] - Wanted Player enter a Checkpoint. - Riven - 30.03.2013

Please?


Re: [HELP] - Wanted Player enter a Checkpoint. - MrTinder - 30.03.2013

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;
}



Re: [HELP] - Wanted Player enter a Checkpoint. - Riven - 03.04.2013

Thanks alot : )


Re: [HELP] - Wanted Player enter a Checkpoint. - Riven - 03.04.2013

well not working

Bump!