hi help server
#7

see here its fs how to add it here



Quote:

#define MAX_BRIBES 1
#include <a_samp>
#include <zcmd>
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[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;
}

Reply


Messages In This Thread
hi help server - by moustafa0550 - 09.01.2014, 12:50
Re: hi help server - by -Jason - 09.01.2014, 12:53
Re: hi help server - by moustafa0550 - 09.01.2014, 13:04
Re: hi help server - by AustinWeerdGuy - 09.01.2014, 13:06
Re: hi help server - by moustafa0550 - 09.01.2014, 13:20
Re: hi help server - by Acres - 09.01.2014, 13:25
Re: hi help server - by moustafa0550 - 09.01.2014, 13:37
Re: hi help server - by moustafa0550 - 09.01.2014, 13:41
Re: hi help server - by SandKing94 - 09.01.2014, 16:58
Re: hi help server - by moustafa0550 - 09.01.2014, 18:37

Forum Jump:


Users browsing this thread: