18.01.2013, 16:20
Here is pastebin link http://pastebin.com/k4mWPcxS
You can create numbers with less gangzones if you use numbers like 1,7 which require only 2 gangzones for one number.
With GangZoneShowForPlayerEx and GangZoneHideForPlayerEx, I think you can create them very easily.Just paste the code from include in OnPlayerConnect callback to the function and edit it.
For example GangZoneShowForPlayerEx:
Quote:
But ... it can't be made with less gangzones ? Also, you should make something like GangZoneShowForPlayerEx and GangZoneHideForPlayerEx.
|
With GangZoneShowForPlayerEx and GangZoneHideForPlayerEx, I think you can create them very easily.Just paste the code from include in OnPlayerConnect callback to the function and edit it.
For example GangZoneShowForPlayerEx:
pawn Код:
GangZoneShowForPlayerEx(playerid,gangzoneid,color)
{
GangZoneShowForPlayer(playerid,gangzoneid,color); // showing main gangzone back
if(zGangZones[gangzoneid][zexist]) // if gangzone was created with boarders and numbers
{
// showing borders
GangZoneShowForPlayer(playerid,zGangZones[gangzoneid][border][0],0x00000060);
GangZoneShowForPlayer(playerid,zGangZones[gangzoneid][border][1],0x00000060);
GangZoneShowForPlayer(playerid,zGangZones[gangzoneid][border][2],0x00000060);
GangZoneShowForPlayer(playerid,zGangZones[gangzoneid][border][3],0x00000060);
// showing numbers
for(new nump;nump<5;nump++)
{
if(zGangZones[gangzoneid][npart][nump] != -1)
{
GangZoneShowForPlayer(playerid,zGangZones[gangzoneid][npart][nump],0x00000080);
}
if(zGangZones[gangzoneid][npart2][nump] != -1)
{
GangZoneShowForPlayer(playerid,zGangZones[gangzoneid][npart2][nump],0x00000080);
}
}
}
}