MagicDuel Wiki
Advertisement

mds_check_group_location

mds_check_group_location - Check if a group is online and at a given location.

Description

int mds_check_group_location(mixed $playernames , string $location)

Check if a group is online and at a given location.

Parameters

playernames
A string with comma separated player names to check or a array with player names to check.
location
A map location where to check.

Return Values

Returns the number of players from the given list that are currently online in the given location.

Restrictions

This function should not be used to check in what location a player (or group) is, but to check if a player is or isn't in one place.
The function can be called a maximum of 4 times in the script (editors found to use ways to avoid such restrictions will lose their editing ability)

Examples

example #1

@vn = 'Super Bozo,Nickmonster,Hocku,Kylar Stern,Grido,sinner,';
@va = mds_check_group_location(@vn,'1_-2x-1_2');
echo 'Group online in Paper Cabin '.@va.'/6';

See Also


Advertisement