Detect if player has Shot someone else (And been Shot)? -
DarrenReeder - 04.04.2010
**Modifed topic to new question...**
Hello,
I would like to know if there is a callback or any other way to detect if i have shot someone or have been shot (Sorta like OnPlayerDeath(playerid,killerid,reason) but more like.. OnPlayerHit(playerid,killerid,reason) )
If there is no callback how could i create my own way of detecting this?
**for being shot..i could check if health has gone down?? but how can i detect if they player has actually be SHOT by another player or if you shoot someone**
Re: Anti-money hack help? -
AdrianX9 - 04.04.2010
Look the command that you uses to give you money...
It must be GivePlayerMoney2, if is GivePlayerMoney it will quit your money off
Re: Anti-money hack help? -
DarrenReeder - 04.04.2010
Quote:
Originally Posted by AdrianX9
Look the command that you uses to give you money...
It must be GivePlayerMoney2, if is GivePlayerMoney it will quit your money off
|
Yea but even when i use givePlayerMoney2 it still resets my money...As well as the problem that it resets my money as soon as i log into the server.
Re: Anti-money hack help? -
Beaver07 - 04.04.2010
it's pretty simple to do if you know what your doing
just create a new variable for players ie
new Money[MAX_PLAYERS];
and set all their cash to that variable instead of using GetPlayerCash or anything just use the id
so for when new players register do
Money[playerid] = 5000; SetPlayerCash(playerid,Money[playerid]);
that will then set their cash to the Money ID and when subtracting or adding cash add it to Money[playerid]
instead of GivePlayerCash or w.e it is and just make a timer where if GetPlayerCash > Money[playerid] then SetPlayerCash(playerid,Money[playerid]); that way it'll check if their cash is greater than wat you gave them it will just set their cash to Money[playerid]; therefore making it impossible to money hack
Re: Detect if player has Shot someone else (And been Shot)? -
DarrenReeder - 04.04.2010
new question*
Re: Detect if player has Shot someone else (And been Shot)? -
Carlton - 04.04.2010
I've seen your question asked several times. Search.
Re: Detect if player has Shot someone else (And been Shot)? -
DarrenReeder - 04.04.2010
Quote:
Originally Posted by Carlton
I've seen your question asked several times. Search.
|
Search for....??
Its a big question, if i search for my title of the Topic exactly...nothing else will show up -.-
Re: Anti-money hack help? -
[MWR]Blood - 04.04.2010
Quote:
Originally Posted by Beaver07
it's pretty simple to do if you know what your doing
just create a new variable for players ie
new Money[MAX_PLAYERS];
and set all their cash to that variable instead of using GetPlayerCash or anything just use the id
so for when new players register do
Money[playerid] = 5000; SetPlayerCash(playerid,Money[playerid]);
that will then set their cash to the Money ID and when subtracting or adding cash add it to Money[playerid]
instead of GivePlayerCash or w.e it is and just make a timer where if GetPlayerCash > Money[playerid] then SetPlayerCash(playerid,Money[playerid]); that way it'll check if their cash is greater than wat you gave them it will just set their cash to Money[playerid]; therefore making it impossible to money hack 
|
GetPlayerCash and SetPlayerCash don't exist.
GetPlayerMoney and SetPlayerMoney are correct.
Re: Detect if player has Shot someone else (And been Shot)? -
Carlton - 04.04.2010
Quote:
Originally Posted by DarrenReeder
Quote:
Originally Posted by Carlton
I've seen your question asked several times. Search.
|
Search for....??
Its a big question, if i search for my title of the Topic exactly...nothing else will show up -.-
|
I swear to god, sometimes I feel users on this forum are senseless.
http://forum.sa-mp.com/index.php?topic=146728.0
http://forum.sa-mp.com/index.php?topic=138575.0
http://forum.sa-mp.com/index.php?topic=66921.0 << Least useful.
http://forum.sa-mp.com/index.php?topic=140371.0 << Most useful.
There are more links but I didn't feel like going on.
Re: Detect if player has Shot someone else (And been Shot)? -
biltong - 04.04.2010
I think with the new camera functions I believe it's possible
Though I have no idea how to use them.