Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*==============================================================================
- _ ____ _____ __ __
- (_) _ \ ___ |_ _|__ __ _| \/ |
- | | |_) / __| | |/ _ \/ _` | |\/| |
- | | __/\__ \ | | __/ (_| | | | |
- |_|_| |___/ |_|\___|\__,_|_| |_|
- [iPs] Anti Money Hack
- Criado por: [iPs]DraKiNs
- Versão 0.1
- ==============================================================================*/
- #include a_samp
- CallCheckMoney();
- CallGiveMoney(i,v);
- new iMoney[MAX_PLAYERS] = 0;
- public OnFilterScriptInit()
- {
- SetTimer("CallCheckMoney", 2500, true);
- return true;
- }
- public OnPlayerConnect(playerid)
- {
- iMoney[playerid] = 0;
- return EnableStuntBonusForAll(false);
- }
- public CallCheckMoney()
- {
- for(new i; i < MAX_PLAYERS; i++)
- {
- if(!IsPlayerConnected(i)) continue;
- if( GetPlayerMoney(i) > iMoney[i] )
- {
- ResetPlayerMoney(i);
- GivePlayerMoney(i,iMoney[i]);
- }
- iMoney[i] = GetPlayerMoney(i);
- }
- return true;
- }
- public CallGiveMoney(i,v)
- {
- GivePlayerMoney(i,v);
- iMoney[i] = GetPlayerMoney(i);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement