03.04.2013, 16:19
Hi guys,
I'm building a server using Vortex Role play as my base. Most things are saved onto my MYSQL Server on localhost. It doesn't include a fuel system. So im using a filter script for a fuel system I found on the forums. It's a good fuel system but when It's supposed to charge the player money, It does it, then resets back to what it was.
Im not 100% sure why this is happening but If I had to make a guess I'd say it was something to do with the Anti-Money hack code that is in the game mode.
Vortex Roleplay Gamemode - https://sampforum.blast.hk/showthread.php?tid=252612&page=1
A snippet of code from the filter script fuel system im using, where it charges the money:
If you need the full fuel system script please just ask and ill put it on paste bin.
Thanks for your help.
I'm building a server using Vortex Role play as my base. Most things are saved onto my MYSQL Server on localhost. It doesn't include a fuel system. So im using a filter script for a fuel system I found on the forums. It's a good fuel system but when It's supposed to charge the player money, It does it, then resets back to what it was.
Im not 100% sure why this is happening but If I had to make a guess I'd say it was something to do with the Anti-Money hack code that is in the game mode.
Vortex Roleplay Gamemode - https://sampforum.blast.hk/showthread.php?tid=252612&page=1
A snippet of code from the filter script fuel system im using, where it charges the money:
Код:
command(refuel, playerid, params[]) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_YELLOW, "You to be inside an vehicle to refuel it."); if(GetPlayerMoney(playerid) < 250) return SendClientMessage(playerid, COLOR_YELLOW, "You do not have enough money to refuel your vehicle."); Carinfo[GetPlayerVehicleID(playerid)][Fuel] = MAX_FUEL; KillTimer(FuelTimer[playerid]); ToggleVehicleEngine(GetPlayerVehicleID(playerid), true); FuelTimer[playerid] = SetTimerEx("FuelDown", 1000, true, "i", playerid); // Fueldown timer GivePlayerMoney(playerid, -250); SendClientMessage(playerid, COLOR_YELLOW, "You refueled your vehicle."); return 1; }
Thanks for your help.