10.09.2009, 23:51
Try:
Because:
Playerid = is you.
Otherplayer = is player to be teleported.
You can not use 'playerid' for you and the other player.
Or do you teleport yourself to yourself ... your own virtual world? 0o
Note: I not tested it!
pawn Код:
SetPlayerInterior(playerid,GetPlayerInterior(otherplayer));
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(otherplayer));
pawn Код:
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),GetPlayerVirtualWorld(otherplayer));
Playerid = is you.
Otherplayer = is player to be teleported.
You can not use 'playerid' for you and the other player.
Or do you teleport yourself to yourself ... your own virtual world? 0o
pawn Код:
tmp = strtok(cmdtext, idx);
new otherplayer = strval(tmp);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Utilize: /goto (playerid)");
if(!IsPlayerConnected(otherplayer)) return SendClientMessage(playerid, COLOR_WHITE, "Invalid player ID!.");