[/gethere] command help
#6

At The First Put that with the includes

Код:
#include <zcmd>
And This is the command

Код:
CMD:gethere(playerid,params[])
{
	if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, 0xFF0606FF, "[ERROR] You are not an admin!");
	new Float:x,Float:y,Float:z,playerb,str[128];
	if(sscanf(params,"u",playerb)) return SendClientMessage(playerid, 0x33AA33FF, "[USAGE]: /get [id]");
	if(!IsPlayerConnected(playerb)) return SendClientMessage(playerid, 0xFF0606FF, "[ERROR] Invalid player id!");
	GetPlayerPos(playerid,x,y,z);
	SetPlayerPos(playerb,x,y,z);
	SetPlayerInterior(playerb, GetPlayerInterior(playerid));
	SetPlayerVirtualWorld(playerb, GetPlayerVirtualWorld(playerid));
	format(str,sizeof(str), "Admin %s has teleported you.", Name(playerid));
	SendClientMessage(playerb, 0xFFFF00FF, str);
	format(str,sizeof(str), " Successfully teleported %s to you.", Name(playerb));
	SendClientMessage(playerid, 0xFF00AEFF, str);
	return 1;
}
Reply


Messages In This Thread
[/gethere] command help - by Nebunul14 - 02.08.2015, 20:00
Re: [/gethere] command help - by Mencent - 02.08.2015, 20:03
Re: [/gethere] command help - by TheSnaKe - 02.08.2015, 20:05
Re: [/gethere] command help - by SFA7X - 02.08.2015, 20:49
Re: [/gethere] command help - by dominik523 - 02.08.2015, 21:01
Re: [/gethere] command help - by Remy0 - 03.08.2015, 08:47

Forum Jump:


Users browsing this thread: 1 Guest(s)