GangZoneFlashForPlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GangZoneFlashForPlayer (
/showthread.php?tid=656917)
GangZoneFlashForPlayer -
KessMan - 27.07.2018
Don't work flash... I do not understand why.
Код HTML:
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.
Re: GangZoneFlashForPlayer -
IceBilizard - 27.07.2018
Try to flash with different color like
PHP код:
GangZoneFlashForPlayer(playerid, spk, 0xFF0000FF);
Re: GangZoneFlashForPlayer -
Florin48 - 27.07.2018
try to flash after show:
CMD:flashzone(playerid, params[])
{
GangZoneShowForPlayer(playerid, spk, 0xFFFF00FF);
GangZoneFlashForPlayer(playerid, spk, 0x009100FF);
return 1;
}
Re: GangZoneFlashForPlayer -
KessMan - 27.07.2018
Quote:
Originally Posted by IceBilizard
Try to flash with different color like
PHP код:
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.
Re: GangZoneFlashForPlayer -
KessMan - 27.07.2018
Quote:
Originally Posted by Florin48
try to flash after show:
CMD:flashzone(playerid, params[])
{
GangZoneShowForPlayer(playerid, spk, 0xFFFF00FF);
GangZoneFlashForPlayer(playerid, spk, 0x009100FF);
return 1;
}
|
No work...
Re: GangZoneFlashForPlayer -
IceBilizard - 27.07.2018
Working fine for me i have tested this code
give a try with this example
PHP код:
//on top of script
new zone1;
then
PHP код:
public OnGameModeInit()
{
zone1 = GangZoneCreate(917, -1964, 1554, -1511);
return 1;
}
then
PHP код:
CMD:showzone(playerid, params[])
{
GangZoneShowForPlayer(playerid, zone1, 0xFFFF00AA);
return 1;
}
CMD:flashzone(playerid, params[])
{
GangZoneFlashForPlayer(playerid, zone1, 0x009100AA);
return 1;
}
Re: GangZoneFlashForPlayer -
KessMan - 27.07.2018
Quote:
Originally Posted by IceBilizard
Working fine for me i have tested this code
give a try with this example
PHP код:
//on top of script
new zone1;
then
PHP код:
public OnGameModeInit()
{
zone1 = GangZoneCreate(917, -1964, 1554, -1511);
return 1;
}
then
PHP код:
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...
Re: GangZoneFlashForPlayer -
IceBilizard - 27.07.2018
Try this