Quote:
Originally Posted by Luicy.
Basically here's the 'important' code in the filterscript:
pawn Code:
hook OnPlayerPickUpPickup(playerid, pickupid) { new id; if((gettime() - DelayTick[playerid]) < BRIBE_USE) return 1; if(pickupid == BribeData[id][brid]) { DelayTick[playerid] = gettime(); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) -2); SendClientMessage(playerid, 0xFFFFFFAA, "{ABD182}[Notice]:{FAFAFA} Your wanted level has decreased by 2 since your picked up a bribe star!"); return 1; } return 1; }
|
But there's no loop, so it only works for the first pickup.
"Your wanted level has decreased by 2 since
your picked up a bribe star!"
Good job :/