31.10.2012, 10:28
Hey guys, How to make a command, when player writes this command he and all who is near he will be teleported somewhere? Please help me, cus I don't know how to make it
CMD:radiustele(playerid, params[])
{
new Float:radius = 10.0, Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
foreach(Players, p)
{
if(IsPlayerInRangeOfPoint(p, radius, pos[0], pos[1], pos[2]))
{
SetPlayerPos(p, 0, 0, 0); // Location
}
}
return 1;
}