22.03.2010, 23:17
Hey guys. I made /challange in a dialog now.
Well. IT has to be like if you aren't inn that zone you it says: YOu are not in grove street.
Well for case 0 it works fine.
If you are not in it. It tells you the message. Else the gang zone will flash.
But with case 1 it just flashes and I don't have a message when I do it out of the zone. Why?
Well. IT has to be like if you aren't inn that zone you it says: YOu are not in grove street.
Well for case 0 it works fine.
If you are not in it. It tells you the message. Else the gang zone will flash.
But with case 1 it just flashes and I don't have a message when I do it out of the zone. Why?
Код:
if(dialogid == 29430) switch(listitem) { case 0: { //GROVEZONE new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); if (X <= 2235.0000 && X >= -1729.0000 && Y <= 2501.0000 && Z >= -1642.0000) { SendClientMessage(playerid, red, "You must be at grove street"); } else { GangZoneFlashForAll(GroveZone,0xFF0000FF); } } case 1: { //lspZONE new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); if (X <= 1326.343 && X >= -1887.144 && Y <= 1702.824 && Z >= -1575.273) { SendClientMessage(playerid, red, "You must be at Pershing Sqaure"); } else { GangZoneFlashForAll(LspZone,0xFF0000FF); } } }