04.01.2013, 15:20
[Include] OnPlayerReceiveMoney
04.01.2013, 16:57
Pretty cool! +6
04.01.2013, 19:38
Usefull, good work.
04.01.2013, 20:47
Looks good and usefull , good work
07.01.2013, 13:24
(
Последний раз редактировалось dr.lozer; 07.01.2013 в 14:44.
)
so simple
EDIT: update this and make OnPlayerLostMoney.. then it would be great!
EDIT: update this and make OnPlayerLostMoney.. then it would be great!
07.01.2013, 13:45
Nice Include .
07.01.2013, 13:56
@dr.lozer, the code which you wrote is long. This include is to help make codes shorter.
Good job, Plovix!
Good job, Plovix!
07.01.2013, 13:58
07.01.2013, 14:06
Can you add a example code of how to use this include?
08.01.2013, 09:37
Quote:
Yes but what if I hack money? What if I get money from stunts(if enabled)? You cannot detect these with that snippet.
|
@vMapper Here is the example code:
PHP код:
#define MAX_RECEIVEMONEY 10000
//...
public OnPlayerReceiveMoney(playerid, amount)
{
if(amount > MAX_RECEIVEMONEY)
{
SendClientMessage(playerid, -1, "SERVER: You received too much money!");
Kick(playerid)
}
}
« Next Oldest | Next Newest »
Users browsing this thread: 3 Guest(s)