Quote:
Originally Posted by beaz
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:
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); } } } }
|
I know how to make Show/Hide to show/hide the entire gangzone, I just suggested you to add these functions to this post, so others could use them easily.