SA-MP Forums Archive
:: Scripting Help :: How to change "Passport Test Time" - 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: :: Scripting Help :: How to change "Passport Test Time" (/showthread.php?tid=361404)



:: Scripting Help :: How to change "Passport Test Time" - Morgothr - 20.07.2012

Trying to start up a server, not good at scripting (when server gets bigger will eventually try to get a proper scripter to help). Anyway, was going through the game and checking things (playing as a normal player, going through tutorial and so on) and when I get to city hall to take the passport test it says I need to wait 300 minutes before I can retake the test (even without "trying" to take it yet). Is there any way to change the script to make it so the waiting time to take the test will be 0 seconds / no waiting time. I have already tried to set the number of seconds to 0 but it doesn't change.

The base script we are using is here: https://sampforum.blast.hk/showthread.php?tid=140427&page=1
The file I am editing to try and change this is the "larp.pwn" file under this line: PlayerInfo[playerid][pPassportTime] = 18000. There is more than one line in the script with passport time, I have tried changing them various times. Am I doing this correctly or what do I need to change? I tried multiple times to change the lines to different numbers (0, 60, 1 etc).

Edit 1:
Tried increasing the value in the script to 10,000 and in game it said "You have to wait 0 minutes to take the test", tried waiting a minute but still can't take the test at all even though it says "You need to wait 0 minutes".

Edit 2:
I searched through the thread linked above and came cross a thread explaining how to change the timer [quote below], when I have tried to do this already instead of taking off the timer it INCREASES the time. Why is it doing this?

for remove passport timer
this so hard i tell to simple work

Quote:
Originally Posted by Venice
Посмотреть сообщение
find all in ur gm
pawn Код:
PlayerInfo[playerid][pPassportTime] = 18000;
pawn Код:
PlayerInfo[playerid][pPassportTime] = 21600;
change to
pawn Код:
PlayerInfo[playerid][pPassportTime] = 0;
Link to above quote: http://forum.sa-mp.com/showthread.ph...rt#post1153794


Re: :: Scripting Help :: How to change "Passport Test Time" - Morgothr - 21.07.2012

Bump.


Re: :: Scripting Help :: How to change "Passport Test Time" - Morgothr - 21.07.2012

Bump... again...


Re: :: Scripting Help :: How to change "Passport Test Time" - Avi57 - 21.07.2012

change PlayerInfo[playerid][pPassportTime] = 18000;
to : PlayerInfo[playerid][pPassportTime] = 36000;

Hope it Help !


Re: :: Scripting Help :: How to change "Passport Test Time" - Morgothr - 21.07.2012

Quote:
Originally Posted by Avi57
Посмотреть сообщение
change PlayerInfo[playerid][pPassportTime] = 18000;
to : PlayerInfo[playerid][pPassportTime] = 36000;

Hope it Help !
Tried changing this 3 times now...
It is still doing the same as before, saying "you need to wait 0 minutes to retake the test".



Done as you stated above and changed every line "PlayerInfo[playerid][pPassportTime] = 18000" to "PlayerInfo[playerid][pPassportTime] = 36000" but it still doing the same as before, you need to wait 0 minutes to retake the test but not able to take it even after waiting 2-3 mins.


Re: :: Scripting Help :: How to change "Passport Test Time" - Morgothr - 21.07.2012

Bump.


Re: :: Scripting Help :: How to change "Passport Test Time" - Morgothr - 21.07.2012

Bump... please somone help >.<


Re: :: Scripting Help :: How to change "Passport Test Time" - [A]ndrei - 21.07.2012

stop bumping i whould help but since you bumped nah...


Re: :: Scripting Help :: How to change "Passport Test Time" - Morgothr - 21.07.2012

Quote:
Originally Posted by [A]ndrei
Посмотреть сообщение
stop bumping i whould help but since you bumped nah...
Nice attitude - think that reputation of yours exceeds you with your ego so high up.

I am bumping because otherwise my thread will go back 2-3 pages.
Its not like I am bumping 5 times in one hour, there was a 4 hour gap to it.