[Help] Teleporting issues.
#1

I need this command:

Код:
CMD:tp(playerid, params[])
{
    new targetid;
    new target[MAX_PLAYER_NAME];
    new Float:x, Float:y, Float:z;
    if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "Usage: /tp [id]");
    GetPlayerName(targetid, target, sizeof(target));
    GetPlayerPos(targetid, x, y, z);
    if(IsPlayerInAnyVehicle(playerid))
    {
    new getvehicle = GetPlayerVehicleID(playerid);
    SetVehiclePos(getvehicle, x, y + 5, z);
    }
    else
    {
    SetPlayerPos(playerid, x, y, z);
    }
    SendClientMessage(targetid, COLOR_WHITE, "An admin teleported to you.");
    return 1;
}
to get the targets interior, and set the players interior.

So say someone is in burger shot.

I teleport to them using /tp. I should be put in that interior. How do I do this?
Reply


Messages In This Thread
[Help] Teleporting issues. - by xXRealLegitXx - 27.04.2013, 20:32
Re: [Help] Teleporting issues. - by RVRP - 27.04.2013, 20:38
Re: [Help] Teleporting issues. - by stabker - 27.04.2013, 21:49

Forum Jump:


Users browsing this thread: 1 Guest(s)