SA-MP Forums Archive
Using a Dealership FS with a gamemode, problems with money - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Using a Dealership FS with a gamemode, problems with money (/showthread.php?tid=269586)



Using a Dealership FS with a gamemode, problems with money - Jack_Leslie - 17.07.2011

Hi guys,
So I'm trying to use a FS as a temp. dealership cause I need one as soon as possible and that's the fastest alternative, but none of them work with my gamemode (GF Core). Everytime a player buys a car, the money resets. So how would I go about making the money actually come off the players account in the FS? :S


Re: Using a Dealership FS with a gamemode, problems with money - Calgon - 17.07.2011

Anyone who scripts for money should be proficient enough a scripter to at least know this...

Use PVars (https://sampwiki.blast.hk/wiki/Per-player_variable_system) to communicate information between your scripts. An enhanced tutorial on doing so: https://sampforum.blast.hk/showthread.php?tid=261584


Re: Using a Dealership FS with a gamemode, problems with money - SergiKirov - 17.07.2011

bah... mispost


Re: Using a Dealership FS with a gamemode, problems with money - dowster - 17.07.2011

Which FS is it?


Re: Using a Dealership FS with a gamemode, problems with money - Shockey HD - 17.07.2011

You will need to have the money save into a file, so when you login in the money is loaded. When you leave the game the money saves. Make the filterscript load off of the Gamemode


Re: Using a Dealership FS with a gamemode, problems with money - Jack_Leslie - 17.07.2011

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
Anyone who scripts for money should be proficient enough a scripter to at least know this...

Use PVars (https://sampwiki.blast.hk/wiki/Per-player_variable_system) to communicate information between your scripts. An enhanced tutorial on doing so: https://sampforum.blast.hk/showthread.php?tid=261584
^_^ Yeah probably true but I've never done this kinda thing before.

Thankyou.