Scripting/Server/Functions/IsPlayerInGangZone
(v0.4-beta+) Whether a player stands inside a zone, the id of the first zone containing a point (-1 = none) and the id of the zone a player is in (-1 = none). Events onPlayerEnterGangZone(player, zone) / onPlayerLeaveGangZone(player, zone) fire for zones that are SHOWN to that player.
Syntax
IsPlayerInGangZone(player, zone)GetGangZoneAt(x, y)player.GangZoneArguments
- Player player
- any zone
- float x
- float y
Returns
bool / integer
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "isplayeringangzone" )
{
local result = IsPlayerInGangZone( player, 0 );
MessagePlayer( "IsPlayerInGangZone returned: " + result, player );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- CreateVehicle
- CreateObject
- CreatePickup
- CreateWeaponPickup
- CreateSphere
- CreateClientSphere
- CreateCheckpoint
- CreateClientCheckpoint
- FindCheckpoint
- GetCheckpointCount
- CreateBlip
- CreateClientBlip
Section: Creating world entities
Categories: Server functions | Creating world entities