12.08.2013, 22:08
PHP код:
public OnPlayerSpawn(playerid)
{
//------------------------------------------------------
GangZoneShowForPlayer(playerid,GZ_Europa, 0xF8250788);
GangZoneShowForPlayer(playerid,GZ_Asia, 0xFFFF0088);
GangZoneShowForPlayer(playerid,GZ_America, 0x0080FF88);
if(GzOwner[0] == 0)//Ganzone 1==============================================
{
GangZoneShowForPlayer(playerid,GZ_ZONE[0],0xFFFFFF88);
}else if(GzOwner[0] == 1)//Europeus
{
GangZoneShowForPlayer(playerid,GZ_ZONE[0],0xF8250788);
}else if(GzOwner[0] == 2)//Asiaticos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[0],0xFFFF0088);
}else if(GzOwner[0] == 3)//Americanos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[0],0x0080FF88);
}
if(GzOwner[1] == 0)//Ganzone 2==============================================
{
GangZoneShowForPlayer(playerid,GZ_ZONE[1],0xFFFFFF88);
}else if(GzOwner[1] == 1)//Europeus
{
GangZoneShowForPlayer(playerid,GZ_ZONE[1],0xF8250788);
}else if(GzOwner[1] == 2)//Asiaticos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[1],0xFFFF0088);
}else if(GzOwner[1] == 3)//Americanos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[1],0x0080FF88);
}
if(GzOwner[2] == 0)//Ganzone 3==============================================
{
GangZoneShowForPlayer(playerid,GZ_ZONE[2],0xFFFFFF88);
}else if(GzOwner[2] == 1)//Europeus
{
GangZoneShowForPlayer(playerid,GZ_ZONE[2],0xF8250788);
}else if(GzOwner[2] == 2)//Asiaticos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[2],0xFFFF0088);
}else if(GzOwner[2] == 3)//Americanos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[2],0x0080FF88);
}
if(GzOwner[3] == 0)//Ganzone 4==============================================
{
GangZoneShowForPlayer(playerid,GZ_ZONE[3],0xFFFFFF88);
}else if(GzOwner[3] == 1)//Europeus
{
GangZoneShowForPlayer(playerid,GZ_ZONE[3],0xF8250788);
}else if(GzOwner[3] == 2)//Asiaticos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[3],0xFFFF0088);
}else if(GzOwner[3] == 3)//Americanos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[3],0x0080FF88);
}
if(GzOwner[4] == 0)//Ganzone 5==============================================Groove Street
{
GangZoneShowForPlayer(playerid,GZ_ZONE[4],0xFFFFFF88);
}else if(GzOwner[4] == 1)//Europeus
{
GangZoneShowForPlayer(playerid,GZ_ZONE[4],0xF8250788);
}else if(GzOwner[4] == 2)//Asiaticos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[4],0xFFFF0088);
}else if(GzOwner[4] == 3)//Americanos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[4],0x0080FF88);
}
if(GzOwner[5] == 0)//Ganzone 6==============================================
{
GangZoneShowForPlayer(playerid,GZ_ZONE[5],0xFFFFFF88);
}else if(GzOwner[5] == 1)//Europeus
{
GangZoneShowForPlayer(playerid,GZ_ZONE[5],0xF8250788);
}else if(GzOwner[5] == 2)//Asiaticos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[5],0xFFFF0088);
}else if(GzOwner[5] == 3)//Americanos
{
GangZoneShowForPlayer(playerid,GZ_ZONE[5],0x0080FF88);
}
return 1;
}
quando eu nгo uso ela , nгo acontece o bug.