[FilterScript] Dynamic Bribe System [Mysql R39-3]
#6

Quote:
Originally Posted by Luicy.
View Post
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 :/
Reply


Messages In This Thread
Dynamic Bribe System [Mysql R39-3] - by yvoms - 19.10.2016, 01:16
Re: Dynamic Bribe System [Mysql R39-3] - by X337 - 19.10.2016, 06:11
Re: Dynamic Bribe System [Mysql R39-3] - by TooroKun - 19.10.2016, 06:29
Re: Dynamic Bribe System [Mysql R39-3] - by SuperTramp - 19.10.2016, 09:36
Re: Dynamic Bribe System [Mysql R39-3] - by Luicy. - 19.10.2016, 10:30
Re: Dynamic Bribe System [Mysql R39-3] - by SickAttack - 19.10.2016, 10:47
Re: Dynamic Bribe System [Mysql R39-3] - by yvoms - 19.10.2016, 11:10
Re: Dynamic Bribe System [Mysql R39-3] - by Konstantinos - 19.10.2016, 11:11
Re: Dynamic Bribe System [Mysql R39-3] - by yvoms - 19.10.2016, 11:45
Re: Dynamic Bribe System [Mysql R39-3] - by SecretBoss - 20.10.2016, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)