SA-MP Forums Archive
[Help] Blocking pickups!! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Blocking pickups!! (/showthread.php?tid=144937)



[Help] Blocking pickups!! - BlackSkull - 29.04.2010

Blocking TEAM_COPS pickups I use only the pickup so that blocking

I did so:
Top
Код:
#define TEAM_COPS 21
gTeam[MAX_PLAYERS];
Код:
new Gren;
Код:
Gren = CreatePickup(351, 1, 405.85,2541.47,16.55);
Код:
public OnPlayerPickUpPickup(playerid, pickupid) {
if(pickupid == Gren) {
if (gTeam[playerid] == TEAM_COPS) {
GivePlayerWeapon(playerid,27,20);
}
}



Re: [Help] Blocking pickups!! - Mauzen - 29.04.2010

Ehm, what is the problem?


Re: [Help] Blocking pickups!! - BlackSkull - 29.04.2010

only the area's dominant gang can get the pickup. That is the problem and how to fix this? does anyone know what the problem is?