13.07.2010, 17:47
As I understood,he wants the function to affect only if a player is in a certain virtual world.
You can do this:
You can do this:
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerVirtualWorld(i) == /*the virtual world you want*/)
{
if(IsPlayerInRangeOfPoint(i,range,x,y,z))
{
//What you want to happen?
}
}
}
}