native GetDynamicZoneArea(zoneid, &Float:minx, &Float:miny, &Float:maxx, &Float:maxy);
native SetDynamicZoneArea(zoneid, Float:minx, Float:miny, Float:maxx, Float:maxy);
native CreateDynamicZone(Float:minx, Float:miny, Float:maxx, Float:maxy, color);
native FlashDynamicZoneForPlayer(playerid, zoneid, color);
native IsDynamicZoneFlashingForPlayer(playerid, zoneid);
native IsDynamicZoneVisibleForPlayer(playerid, zoneid);
native StopFlashDynamicZoneForPlayer(playerid, zoneid);
native ShowDynamicZoneForPlayer(playerid, zoneid);
native HideDynamicZoneForPlayer(playerid, zoneid);
native IsPlayerInDynamicZone(playerid, zoneid);
native FlashDynamicZoneForAll(zoneid, color);
native SetDynamicZoneColor(zoneid, color);
native StopFlashDynamicZoneForAll(zoneid);
native ShowDynamicZoneForAll(zoneid);
native HideDynamicZoneForAll(zoneid);
native GetDynamicZoneColor(zoneid);
native DestroyDynamicZone(zoneid);
native zexist(zoneid);
Name | Function | Params |
StopFlashDynamicZoneForPlayer | Stops a zone of flashing for a player. | (playerid, zoneid) |
IsDynamicZoneFlashingForPlayer | Checks if a zone is flashing for a player. | (playerid, zoneid) |
IsDynamicZoneVisibleForPlayer | Checks if a zone is visible for a player. | (playerid, zoneid) |
StopFlashDynamicZoneForAll | Stops a zone of flashing for all. | (zoneid) |
ShowDynamicZoneForPlayer | Show a zone for a player. | (playerid, zoneid) |
FlashDynamicZoneForPlayer | Flashes a zone for a player. | (playerid, zoneid) |
HideDynamicZoneForPlayer | Hides a zone for a player. | (playerid, zoneid) |
ShowDynamicZoneForAll | Flashes a zone for all. | (zoneid) |
FlashDynamicZoneForAll | Flashes a zone for all. | (zoneid) |
HideDynamicZoneForAll | Flashes a zone for all. | (zoneid) |
IsPlayerInDynamicZone | Checks if a player is in a zone. | (playerid, zoneid) |
SetDynamicZoneColor | Set the color of a zone. | (zoneid, color) |
GetDynamicZoneColor | Get the color of a zone. | (zoneid) |
SetDynamicZoneArea | Change the zone position. | (zoneid, Float:minx, Float:miny, Float:maxx, Float:maxy) |
GetDynamicZoneArea | Store the zone position, passed by reference. | (zoneid, Float:minx, Float:miny, Float:maxx, Float:maxy) |
DestroyDynamicZone | Destroys a Dynamic Zone | (zoneid) |
CreateDynamicZone | Creates a Dynamic Zone. | (Float:minx, Float:miny, Float:maxx, Float:maxy, color) |
zexist | Check if a zone exist. | (zoneid) |
Name | Info | Params |
OnPlayerEnterDynamicZone | Called when a player enters a zone | (playerid, zoneid) |
OnPlayerExitDynamicZone | Called when a player exits a zone | (playerid, zoneid) |
public OnPlayerEnterDynamicZone( playerid, zoneid )
{
if(zoneid == 1 && IsPlayerAdmin(playerid)) SendClientMessage( playerid, 0xFFFFFFFF, "Welcome to the zone, admin." );
return 1;
}
public OnPlayerExitDynamicZone( playerid, zoneid )
{
if(zoneid == 1 && IsPlayerAdmin(playerid)) SendClientMessage( playerid, 0xFFFFFFFF, "Good bye, admin." );
return 1;
}
Nice
Whats this? GetDynamicZoneArea(zoneid, &Float:minx, &Float:miny, &Float:maxx, &Float:maxy); |
Thanks.
It's to get the minx, miny, maxx and maxy coordinates of a zone. |
pawn Код:
|
get minimum x,y and maximum x,y ?
Can you explane more about the minimum,maximum x,y ? |