[HELP] Two commands
#6

Quote:
Originally Posted by Zekiloni
Посмотреть сообщение
it's not ZCMD, there no have cmd procesor.
and no one help me
Ok there is the explantion for the /goto command.

Код:
CMD:goto(playerid,params[])
{
	new ID, //
		Float:X,
		Float:Y,
		Float:Z,
		Float:A;
	if(sscanf(params,"i", ID)) return SendClientMessage(playerid,-1,"* Usage: /goto [player]"); // Refer to my previous explaination.
	GetPlayerPos(ID, X,Y,Z); // Getting position of the player you want to TP to.
	GetPlayerFacingAngle(ID, A); // Getting his facing angle.
	SetPlayerPos(playerid, X,Y+5,Z); // Setting your position , playerid refers to you & ID refers to the player you're wanting to TP to.
	SetPlayerFacingAngle(playerid, A); // setting your facing angle
	SendClientMessage(playerid, -1, " You have successfully been teleported.");
	return 1;
}
Reply


Messages In This Thread
[HELP] Two commands - by Zekiloni - 01.01.2015, 14:14
Re: [HELP] Two commands - by Desi_Dude - 01.01.2015, 14:18
Re: [HELP] Two commands - by Diti1 - 01.01.2015, 14:20
Re: [HELP] Two commands - by Desi_Dude - 01.01.2015, 14:34
Re: [HELP] Two commands - by Zekiloni - 01.01.2015, 14:42
Re: [HELP] Two commands - by Desi_Dude - 01.01.2015, 15:16
Re: [HELP] Two commands - by Zekiloni - 01.01.2015, 15:20
Re: [HELP] Two commands - by Desi_Dude - 01.01.2015, 15:29
Re: [HELP] Two commands - by rickisme - 01.01.2015, 15:34
Re: [HELP] Two commands - by Wizzy951 - 01.01.2015, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)