Help with teleporting
#4

You need to have admin system.

Код:
#include <a_samp>
#include <zcmd>

CMD:getall(playerid,params[])
{
    #pragma unused params
	if(AccInfo[playerid][Level] >= 4)
	{
		SendCommandToAdmins(playerid,"GetAll");
		new Float:x,Float:y,Float:z, interior = GetPlayerInterior(playerid);
    	GetPlayerPos(playerid,x,y,z);
	   	for(new i = 0; i < MAX_PLAYERS; i++)
  		{
		if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel])
		{
		PlayerPlaySound(i,1057,0.0,0.0,0.0);
		SetPlayerPos(i,x+(playerid/4)+1,y+(playerid/4),z);
		SetPlayerInterior(i,interior);
		}
		}
		new string[128];
		format(string,sizeof(string),"|- Administrator \"%s\" has Teleported all players -|", pName(playerid));
		return SendClientMessageToAll(blue, string);
	}
	else return ErrorMessages(playerid, 5);
}
This is from luxadmin
Reply


Messages In This Thread
Help with teleporting - by leon14032002 - 02.02.2015, 15:27
AW: Help with teleporting - by Nero_3D - 02.02.2015, 16:38
Re: Help with teleporting - by leon14032002 - 02.02.2015, 17:04
Re: Help with teleporting - by RedCode - 02.02.2015, 17:11
Re: Help with teleporting - by CalvinC - 02.02.2015, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)