22.04.2012, 18:58
Using YSI, Is it possible to create a command that saves cars ingame and that will stay once the server has been restarted?
Thats way to long and dragged out to tell you how to here in code so imma give you a check list then ask for parts which your stuck on.
1. Create a enum inclding everything your cars require 2. create an array such as VehicleInfo[MAX_VEHICLES][vInfo]; to call the enum 3. sort out the saving and loading 4. Spawn a car 5. code a dialog or a command to save the car such as /savev - get the car the players in save it under a vehicle count ehich will be loaded next time the server starts 6. Use the command! 7. DOne |
Thank you, Also one more thing..
Why is it, when a player registers I have PlayerInfo[playerid][pCash] ++ 2000; and it don't give them cash. |
I highly suggest you to read https://sampwiki.blast.hk/wiki/Scripting_Basics.
PlayerInfo[playerid][pCash] += 2000; |
GivePlayerMoney(playerid, pInfo[playerid][pCash]);