Teleport another player.
#2

I don't know how to make it like the /ptele id location, but i can make the normal cmd

Код:
dcmd(ptele1,6,cmdtext);
Код:
dcmd_ptele1(playerid,params[])
{
	new pid;
	if(IsPlayerAdmin(playerid));
	else if(params,"u",pid)) return SendClientMessage(playerid,COLOUR_RED,"Usage: /ptele1 [ID]");
	else if(pid == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOUR_RED,"Inactive player id");
	else
	{
	  new name[MAX_PLAYER_NAME],string[128];
		GetPlayerName(pid,name,sizeof(name));
		format(string,sizeof(string),"%s has been sent to Jail 1!",name);
		SendClientMessageToAll(COLOUR_RED,string);
		SetPlayerPos(playerid,2652.8525,2732.3157,10.8203);
		return 1;
		}
}
And just do that 4 more times :b But i don't know if you can use this tho.
Reply


Messages In This Thread
Teleport another player. - by keujh - 03.04.2010, 21:59
Re: Teleport another player. - by Naxix - 03.04.2010, 22:16
Re: Teleport another player. - by keujh - 03.04.2010, 22:28
Re: Teleport another player. - by Naxix - 03.04.2010, 22:53
Re: Teleport another player. - by keujh - 03.04.2010, 23:09

Forum Jump:


Users browsing this thread: 1 Guest(s)