Carsystem and Anti Cheat
#1

Hey,
i use this Carsystem:
http://forum.sa-mp.com/index.php?topic=78765.0

and a Anti Money Hack,

when i try to Buy a Car i get the Car for Free sorry for ma bad english
Money dont getting deducted


i already tried it with callremote etc:

else if (strcmp("/buycar", cmd, true, 10) == 0)
{
if (Spectating[playerid][0]!=-1)
{
if (Carlist[playerid][Typ]==-1)
{
new preis = Kaufliste[Spectating[playerid][0]][Preis];
if (preis <= GetPlayerMoney(playerid))
{
new autohaus=Kaufliste[Spectating[playerid][0]][Autohaus];
CallRemoteFunction("bGivePlayerMoney","i",playerid ,-preis);
Carlist[playerid][Typ]=Spectating[playerid][0]; Carlist[playerid][X]=Autospawns[autohaus][X]; Carlist[playerid][Y]=Autospawns[autohaus][Y];
Carlist[playerid][Z]=Autospawns[autohaus][Z]; Carlist[playerid][Rotation]=Autospawns[autohaus][Rotation]; Carlist[playerid][Status]=1; Carlist[playerid][Lock]=0;
Carlist[playerid][Carid]=CreateVehicle(Kaufliste[Spectating[playerid][0]][Modelid],Carlist[playerid][X],Carlist[playerid][Y],Carlist[playerid][Z],Carlist[playerid][Rotation],-1,-1,-1);
SetVehicleParamsForAll(Kaufliste[Spectating[playerid][0]][Carid],0,0);
TogglePlayerControllable(playerid,1);
Spectating[playerid][0]=-1;
RemovePlayerFromVehicle(playerid);
format(string,128,"Du hast dir erfolgreich fьr $%i ein/einen %s gekauft!",preis,Kaufliste[Carlist[playerid][Typ]][Name]);
SendClientMessage(playerid, COLOR_RED, string);
SendClientMessage(playerid, COLOR_GREEN, "Wenn du dein Fahrzeug zerstцrst, gib /fixcar ein.");
SendClientMessage(playerid, COLOR_GREEN, "Mit /carlock kannst du dein Fahrzeug fьr andere Leute freigeben oder abschlieЯen.");
SendClientMessage(playerid, COLOR_GREEN, "Mehr Befehle kannst du unter /carhelp sehen.");
SendClientMessage(playerid, COLOR_YELLOW, "Dein Auto steht am Ausgabepunkt bereit! Viel SpaЯ beim Fahren!");
}
else { format(string, 128, "Du hast nicht genug Geld fьr das Auto (benцtigt: $%i)!", preis); SendClientMessage(playerid, COLOR_LIGHTRED, string); }
}
else { SendClientMessage(playerid, COLOR_GREY, "Du besitzt bereits ein Auto!"); }
}
else { SendClientMessage(playerid, COLOR_GREY, "Du besichtigst kein Auto!"); }
return 1;
}
Reply
#2

Ask in the script's thread.
Reply
#3

Okay...
Reply
#4

And next time use
tags
Reply
#5

Quote:
Originally Posted by еddy
Ask in the script's thread.
what is it here?

I think
pawn Код:
CallRemoteFunction("bGivePlayerMoney","i",playerid,-preis);
Should have to "ii" not "i"
CallRemoteFunction("bGivePlayerMoney","ii",playerid,-preis);
Try it.
Reply
#6

Quote:
Originally Posted by [DK
AzaxYo ]
Quote:
Originally Posted by еddy
Ask in the script's thread.
what is it here?
He have to ask in that script's thread he downloaded.
Reply
#7

Quote:
Originally Posted by [DK
AzaxYo ]
Quote:
Originally Posted by еddy
Ask in the script's thread.
what is it here?

I think
pawn Код:
CallRemoteFunction("bGivePlayerMoney","i",playerid,-preis);
Should have to "ii" not "i"
CallRemoteFunction("bGivePlayerMoney","ii",playerid,-preis);
Try it.
dont work

the anticheat is not a include its in the gamemode
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)