Gangzone problem
#1

If player enter in turfs and exit i want to send a message : Stay in gangzone or you lose HP. and timer, 5,4,3,2,1 and player lose -5HP.

Please help.
Reply
#2

You can't detect if a player has left or entered a gang zone, although there are alternative ways of detecting this.

I suggest using streamer: https://sampforum.blast.hk/showthread.php?tid=102865 and doing area checks.

pawn Код:
native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
pawn Код:
forward OnPlayerEnterDynamicArea(playerid, areaid);
forward OnPlayerLeaveDynamicArea(playerid, areaid);
Just like how you would create a gangzone.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)