20.12.2012, 04:48
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");
}

