SA-MP Forums Archive
Gangzone Gammix - 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: Gangzone Gammix (/showthread.php?tid=587378)



Gangzone Gammix - Hemeei - 30.08.2015

hello guys , how to use gammix Interactive Gangzones Include?

PHP код:
new GZ_ZONE1;
public 
OnGameModeInit()
{
    
GZ_ZONE1 GangZoneCreate(890.625,503.90625,2906.25,2906.25,-1,-1,-1,2.0,0x00000060);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    
GangZoneShowForAll(GZ_ZONE1,-1,0x00000060);
    return 
1;

But how to use this ??

public OnPlayerEnterGangZone(playerid, zone);
public OnPlayerLeaveGangZone(playerid, zone);


Re: Gangzone Gammix - Roberto80 - 30.08.2015

Same as normal one,just add border in GangZoneCreate params,functions:
Код:
native GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy, color = -1, interior = -1, virtualworld = -1, Float:bordersize = 1.0, bordercolor = 0x00000060);
native GangZoneDestory(zone);
native GangZoneExist(zone);
native GangZoneShowForPlayer(playerid, zone, color = -1, bordercolor = -1);
native GangZoneShowForAll(zone, color = -1, bordercolor = -1);
native GangZoneHideForPlayer(playerid, zone);
native GangZoneHideForAll(zone);
native GangZoneSetColorForPlayer(playerid, zone, color, bordercolor = 0x00000060);
native GangZoneSetColorForAll(playerid, zone, color, bordercolor = 0x00000060);
native GangZoneFlashForPlayer(playerid, zone, flashcolor);
native GangZoneFlashForAll(zone, flashcolor);
native GangZoneStopFlashForPlayer(playerid, zone);
native GangZoneStopFlashForAll(zone);
native GangZoneSetInterior(zone, interior);
native GangZoneGetInterior(zone);
native GangZoneSetVirtualWorld(zone, virtualworld);
native GangZoneGetVirtualWorld(zone);
native CountAllGangZones();
native DestroyAllGangZones();
native ShowAllGangZonesForPlayer(playerid, color = -1, bordercolor = -1);
native ShowAllGangZonesForAll(color = -1, bordercolor = -1);
native HideAllGangZonesForPlayer(playerid);
native HideAllGangZonesForAll();
native IsPlayerInGangZone(playerid, zone);
native IsPlayerInAnyGangZone(playerid);
native GetPlayerGangZone(playerid);



Re: Gangzone Gammix - Hemeei - 30.08.2015

Quote:
Originally Posted by Roberto80
Посмотреть сообщение
Same as normal one,just add border in GangZoneCreate params,functions:
Код:
native GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy, color = -1, interior = -1, virtualworld = -1, Float:bordersize = 1.0, bordercolor = 0x00000060);
native GangZoneDestory(zone);
native GangZoneExist(zone);
native GangZoneShowForPlayer(playerid, zone, color = -1, bordercolor = -1);
native GangZoneShowForAll(zone, color = -1, bordercolor = -1);
native GangZoneHideForPlayer(playerid, zone);
native GangZoneHideForAll(zone);
native GangZoneSetColorForPlayer(playerid, zone, color, bordercolor = 0x00000060);
native GangZoneSetColorForAll(playerid, zone, color, bordercolor = 0x00000060);
native GangZoneFlashForPlayer(playerid, zone, flashcolor);
native GangZoneFlashForAll(zone, flashcolor);
native GangZoneStopFlashForPlayer(playerid, zone);
native GangZoneStopFlashForAll(zone);
native GangZoneSetInterior(zone, interior);
native GangZoneGetInterior(zone);
native GangZoneSetVirtualWorld(zone, virtualworld);
native GangZoneGetVirtualWorld(zone);
native CountAllGangZones();
native DestroyAllGangZones();
native ShowAllGangZonesForPlayer(playerid, color = -1, bordercolor = -1);
native ShowAllGangZonesForAll(color = -1, bordercolor = -1);
native HideAllGangZonesForPlayer(playerid);
native HideAllGangZonesForAll();
native IsPlayerInGangZone(playerid, zone);
native IsPlayerInAnyGangZone(playerid);
native GetPlayerGangZone(playerid);
i know that but this

how to use it ??
public OnPlayerEnterGangZone(playerid, zone);
public OnPlayerLeaveGangZone(playerid, zone);


like this ?
PHP код:
public OnPlayerEnterGangZone(playeridzone);
{
  if 
IsPlayerInGangZone(playeridG_zone1){
    
SendClientMessage(playerid,-1,"USA")
 
//uhmm?
  
}
  return 
1;
[
PHP]
public 
OnPlayerLeaveGangZone(playeridzone); //uhmm? 
}[/php]


Re: Gangzone Gammix - Roberto80 - 30.08.2015

Mmm try this:
Код:
public OnPlayerEnterGangZone(playerid, zone); 
{ 
switch(zone)
{
case G_zone1:
{
SendClientMessage(playerid,-1,"Joined USA Base!")(
}
}
return 1;
}
Or you can use if(zone == G_zone1)


Re: Gangzone Gammix - Hemeei - 30.08.2015

Thank you! it worK! +rep
EDIT : You must spread some Reputation around before giving it to Roberto80 again. :C


Re: Gangzone Gammix - Roberto80 - 30.08.2015

Quote:
Originally Posted by Hemeei
Посмотреть сообщение
Thank you! it worK! +rep
EDIT : You must spread some Reputation around before giving it to Roberto80 again. :C
Hahahhahah xD,ok remember it