GangZone not working
#6

SOLVED!

Quote:
Originally Posted by Shadow0707
View Post
PHP Code:
#define COLOR_BLACK 0x000000AA
new slex_part1_zone;
public 
OnPlayerConnect(playerid)
{
    
SetGameModeText("SLEX 4.0");
    
slex_part1_zone CreatePlayerGangZone(playerid2903.1584, -768.67273000.0000, -800.2560);
    
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    
PlayerGangZoneShow(playeridslex_part1_zoneCOLOR_BLACK);
    return 
1;

this should do it.

EDIT: I tried your coordinates and it shows this.

PHP Code:
CreatePlayerGangZoneMaxXMaxY must be bigger than MinXMinYNot inversely!
CreatePlayerGangZone2903.158447, -768.6727293000.000000, -800.255981 
The error is understandable and can be easily fixed.
It is now working! thank you dude! He're my snippet script code:

HTML Code:
public OnPlayerConnect(playerid)
{
    slex_part1_zone = CreatePlayerGangZone(playerid, 2903.1584, -800.2560, 13618.5732, -768.6727);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    PlayerGangZoneDestroy(playerid, slex_part1_zone);
	return 1;
}

public OnPlayerSpawn(playerid)
{
    PlayerGangZoneShow(playerid, slex_part1_zone, COLOR_BLACK);
	return 1;
}
Reply


Messages In This Thread
GangZone not working - by PepeTheFrog - 12.05.2020, 23:56
Re: GangZone not working - by KamilPolska - 13.05.2020, 00:38
Re: GangZone not working - by PepeTheFrog - 13.05.2020, 00:53
Re: GangZone not working - by PepeTheFrog - 13.05.2020, 01:13
Re: GangZone not working - by Shadow0707 - 13.05.2020, 06:05
Re: GangZone not working - by PepeTheFrog - 13.05.2020, 08:35

Forum Jump:


Users browsing this thread: 1 Guest(s)