14.01.2013, 18:10
(
Последний раз редактировалось beaz; 07.10.2016 в 15:07.
)
New and updated version can be found here: https://sampforum.blast.hk/showthread.php?tid=618475
But ... it can't be made with less gangzones ? Also, you should make something like GangZoneShowForPlayerEx and GangZoneHideForPlayerEx.
|
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);
}
}
}
}
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 Код:
|
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 Код:
|