13.07.2010, 17:23
Can this function be worked in a virtual world? I'm making a small sumo minigame so I'd like to know. Cheers.
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?
}
}
}
}
As I understood,he wants the function to affect only if a player is in a certain virtual world.
You can do this: pawn Код:
|