GangZoneCreate error or something....
#1

i made 3 gang zones...2 are working correctly and 1 is not..

Код:
new gangzoneone;
new gangzonetwo;
new gangzonethree;

under public OnGameModeInit()
gangzones...
PHP код:
    gangzoneoneGangZoneCreate(69.0464, -2975.52493030.7229, -421.0719);
    
gangzonetwoGangZoneCreate(-3129.2268, -1278.4356, -629.38461275.7016);
    
gangzonethreeGangZoneCreate(-3129.2268, -1278.4356, -629.38461275.7016); 
OnPlayerUPdate
PHP код:
 if(IsPlayerInGangZone(playeridgangzonethree))
    {
SendClientMessage(playeridCOLOR_RED"WARNING: {FFFFFF}You have entered gangzone 3."); 
other two has same code and it send client message that u are in gangzone 2 or 1 but it doesn't send message for 3rd.

I'm using InterActive GangZones: https://sampforum.blast.hk/showthread.php?tid=556670
and simple a_zone includes.....

Any Help?
Reply
#2

any help?
Reply
#3

Код:
 gangzonetwo= GangZoneCreate(-3129.2268, -1278.4356, -629.3846, 1275.7016); 
    gangzonethree= GangZoneCreate(-3129.2268, -1278.4356, -629.3846, 1275.7016);
String's is equal! (after GangZoneCreate)
Reply
#4

Quote:
Originally Posted by povargek
Посмотреть сообщение
Код:
 gangzonetwo= GangZoneCreate(-3129.2268, -1278.4356, -629.3846, 1275.7016); 
    gangzonethree= GangZoneCreate(-3129.2268, -1278.4356, -629.3846, 1275.7016);
String's is equal! (after GangZoneCreate)
Right word would be the parameters (gangzonetwo and gangzonethree have same coordinates)

Also, instead of using OnPlayerUpdate, use the callback given in the include: OnPlayerEnterGangZone, which is called only once when a player enters in a gangzone area.
Reply
#5

i know they are equal but it should send both messages instead of only for two.....onplayerentergangzone lemme try.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)