Help with Gang Zones
#5

Quote:
Originally Posted by Jakku
Use GangZoneShowForPlayer, not GangZoneShowForAll
Like i said GangZoneShowForPlayer only shows to the player who gets the pickup the same with the spawn, it will show green to the player who conects to the server not for the other players that already connected that's why I used GangZoneShowForAll

What im thinking is put a code like this

Code:
public OnPlayerSpawn(playerid){
	if(gTeam[playerid] == TEAM_TRABAJADORES) {
     if(Zonetrabajtaken[playerid] == 0) return GangZoneShowForPlayer(playerid,Trabajadores,COLOR_GREEN);
return 1;}
Under onplayerpickup
Code:
	if (pickupid == zonatrabaj && gTeam[playerid] == TEAM_TRABAJADORES){
	GangZoneShowForAll(Trabajadores,COLOR_GREEN);
    Zonetrabajtaken[playerid] == 0
 	}
	if (pickupid == zonatrabaj && gTeam[playerid] == TEAM_EMPRESARIOS){
	GangZoneShowForAll(Trabajadores,COLOR_PURPLE);
    Zonetrabajtaken[playerid] == 1
 	}
If I'm not wrong it should work I have to try it out
I don't know what you guys suggest
Reply


Messages In This Thread
Help with Gang Zones - by caribe88 - 14.10.2009, 02:35
Re: Help with Gang Zones - by klavins - 14.10.2009, 11:28
Re: Help with Gang Zones - by caribe88 - 14.10.2009, 13:56
Re: Help with Gang Zones - by Jakku - 14.10.2009, 15:12
Re: Help with Gang Zones - by caribe88 - 14.10.2009, 15:26

Forum Jump:


Users browsing this thread: 2 Guest(s)