Help With Pickup Bribe Please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help With Pickup Bribe Please (
/showthread.php?tid=485178)
Help With Pickup Bribe Please -
moustafa0550 - 03.01.2014
Help With Pickup Bribe Please i want it FS Please
![Cheesy](images/smilies/biggrin.png)
+ Rep
i Want /createbribe 1247
and He is Save Otmatic x y z
And Any One Have Wanted He is Take it And -1 Dissapear 1 Wanted And Back To Take it again after 5min
And only Admins /createbribe 1247
![Cheesy](images/smilies/biggrin.png)
+rep
Re: Help With Pickup Bribe Please -
moustafa0550 - 03.01.2014
help please and ++++++ rep
Re: Help With Pickup Bribe Please -
[EnErGyS]KING - 03.01.2014
This is not script request forum. Here tut how create pickup
https://sampforum.blast.hk/showthread.php?tid=327953
Re: Help With Pickup Bribe Please -
moustafa0550 - 03.01.2014
lol im bad from add and make any one help i reppppp him
Re: Help With Pickup Bribe Please -
moustafa0550 - 03.01.2014
help please
Re: Help With Pickup Bribe Please -
[EnErGyS]KING - 03.01.2014
Look below me. It better use that code
Re: Help With Pickup Bribe Please -
J4mmyHD - 03.01.2014
pawn Код:
#define MAX_BRIBES 200
new BribeTimer[MAX_PLAYERS];
new Bribe[MAX_BRIBES];
CMD:createbribe(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not a RCON admin.");
new Float:p[3];
GetPlayerPos(playerid, p[0], p[1], p[2]);
for(new i = 0; i < MAX_BRIBES; i++)
{
Bribe[i] = CreatePickup(1247, 1, p[0], p[1], p[2], GetPlayerVirtualWorld(playerid);
}
SendClientMessage(playerid, -1, "You created a Bribe at your Location.");
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
for(new i = 0; i < MAX_BRIBES; i++)
{
if(pickupid == Bribe[i])
{
new Wanted = GetPlayerWantedLevel(playerid);
if(Wanted == 0) return SendClientMessage(playerid, -1, "You dont need a Bribe right now.");
if(BribeTimer[playerid] == 1) return SendClientMessage(playerid, -1, "You cant do this right now.");
SetPlayerWantedLevel(playerid, Wanted - 1);
BribeTimer[playerid] = 1;
SetTimerEx("BribeDecrease", false, 300000, "i", playerid);
}
}
return 1;
}
forward BribeDecrease(playerid);
public BribeDecrease(playerid)
{
BribeTimer[playerid] = 0;
return 1;
}