27.04.2013, 20:32
I need this command:
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?
Код:
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; }
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?