PDA

View Full Version : GangZoneFlashForPlayer


KessMan
27/07/2018, 01:16 PM
Don't work flash... I do not understand why.
new spk;
public OnGameModeInit()
{
spk = GangZoneCreate(917, -1964, 1554, -1511);
return 1;
}
CMD:showzone(playerid, params[])
{
GangZoneShowForPlayer(playerid, spk, 0xFFFF00AA);
return 1;
}
CMD:flashzone(playerid, params[])
{
GangZoneFlashForPlayer(playerid, spk, 0x009100AA);
return 1;
}
CMD /showzone work.
CMD /flashzone not working.
Thank you for reading.

IceBilizard
27/07/2018, 02:21 PM
Try to flash with different color like


GangZoneFlashForPlayer(playerid, spk, 0xFF0000FF);

Florin48
27/07/2018, 02:30 PM
try to flash after show:


CMD:flashzone(playerid, params[])
{
GangZoneShowForPlayer(playerid, spk, 0xFFFF00FF);
GangZoneFlashForPlayer(playerid, spk, 0x009100FF);
return 1;
}

KessMan
27/07/2018, 02:32 PM
Try to flash with different color like


GangZoneFlashForPlayer(playerid, spk, 0xFF0000FF);


It does not work ...
I also took a new server (SA-MP 0.3.7-R2 Windows Server) to try, and the same. It does not work on Grandlarc.

KessMan
27/07/2018, 02:37 PM
try to flash after show:


CMD:flashzone(playerid, params[])
{
GangZoneShowForPlayer(playerid, spk, 0xFFFF00FF);
GangZoneFlashForPlayer(playerid, spk, 0x009100FF);
return 1;
}

No work...

IceBilizard
27/07/2018, 02:45 PM
Working fine for me i have tested this code


give a try with this example




//on top of script
new zone1;


then


public OnGameModeInit()
{
zone1 = GangZoneCreate(917, -1964, 1554, -1511);
return 1;
}


then


CMD:showzone(playerid, params[])
{
GangZoneShowForPlayer(playerid, zone1, 0xFFFF00AA);
return 1;
}
CMD:flashzone(playerid, params[])
{
GangZoneFlashForPlayer(playerid, zone1, 0x009100AA);
return 1;
}

KessMan
27/07/2018, 02:51 PM
Working fine for me i have tested this code


give a try with this example




//on top of script
new zone1;


then


public OnGameModeInit()
{
zone1 = GangZoneCreate(917, -1964, 1554, -1511);
return 1;
}


then


CMD:showzone(playerid, params[])
{
GangZoneShowForPlayer(playerid, zone1, 0xFFFF00AA);
return 1;
}
CMD:flashzone(playerid, params[])
{
GangZoneFlashForPlayer(playerid, zone1, 0x009100AA);
return 1;
}


It does not work .. Can you give me a. Amx with these complied? There's something wrong with my includes... :confused::(

IceBilizard
27/07/2018, 02:59 PM
Try this

KessMan
27/07/2018, 03:17 PM
Try this

No work...:mad::mad::mad:

Your sampserver.exe is it like this?
https://i.imgur.com/KaJkXTm.png

IceBilizard
27/07/2018, 04:22 PM
Yes i hope you have fully samp server package with includes