01.07.2013, 19:54
Seria isso?
pawn Code:
COMMAND:ir(playerid, params[])
{
new OtherPlayer, Float:x, Float:y, Float:z, PortMsg[128], IntID, WorldID;
if (PlayerInfo[playerid][LevelADM] >= 1)
{
if(Trabalhando[playerid] < 1) return SendClientMessage(playerid, rCinza, "Voce precisa estar trabalhando para usar comandos");
if (sscanf(params, "u", OtherPlayer)) SendClientMessage(playerid, 0xFF0000AA, "Use: /ir [id]");
else
{
if (IsPlayerConnected(OtherPlayer))
{
GetPlayerPos(OtherPlayer, x, y, z);
IntID = GetPlayerInterior(OtherPlayer);
WorldID = GetPlayerVirtualWorld(OtherPlayer);
SetPlayerVirtualWorld(playerid, WorldID);
SetPlayerInterior(playerid, IntID);
SetPlayerPos(playerid, x, y, z + 3.0);
format(PortMsg, 128, "A posiзгo do jogador й: %4.2f, %4.2f, %4.2f", x, y, z + 3.0);
SendClientMessage(playerid, 0x00FF00FF, PortMsg);
}
}
}
return 1;
}