[+1 Rep] Getting Player Location
#2

im not sure what you mean but i think this will help you:
Код:
CMD:goto(playerid,params[]) {
    if(AccInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid)) {
	    if(isnull(params)) return Inter_SendClientMessage(playerid,red,"USAGE: /goto [playerid]");
	    new player1, string[128];
		if(!IsNumeric(params)) player1 = ReturnPlayerID(params);
	   	else player1 = strval(params);
	 	if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid) {
		//	SendCommandToAdmins(playerid,"GOTO");
			new Float:x, Float:y, Float:z;
			GetPlayerPos(player1,x,y,z);
			TogglePlayerControllable(playerid,0);
			format(string,sizeof(string),"You have teleported to \"%s\"", pName(player1));
			TimedTele(playerid, string, x+3, y, z, GetPlayerInterior(player1), GetPlayerVirtualWorld(player1), 1);
			return Inter_SendClientMessage(playerid,blue,string);
		} else return Inter_SendClientMessage(playerid, red, "Player is not connected or is yourself");
	} else return Inter_SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
Reply


Messages In This Thread
[+1 Rep] Getting Player Location - by Spotlight - 20.12.2012, 04:38
Re: [+1 Rep] Getting Player Location - by Frede - 20.12.2012, 04:48
Re: [+1 Rep] Getting Player Location - by B-Matt - 20.12.2012, 06:30
Re: [+1 Rep] Getting Player Location - by Sasino97 - 20.12.2012, 06:57
Re: [+1 Rep] Getting Player Location - by eesh - 20.12.2012, 06:59
Re: [+1 Rep] Getting Player Location - by Sasino97 - 20.12.2012, 07:01
Re : [+1 Rep] Getting Player Location - by Frede - 20.12.2012, 07:34
Re: [+1 Rep] Getting Player Location - by Spotlight - 21.12.2012, 04:03

Forum Jump:


Users browsing this thread: 1 Guest(s)