Command /ride - problem with virtual world
#2

Try:
pawn Код:
SetPlayerInterior(playerid,GetPlayerInterior(otherplayer));
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(otherplayer));
pawn Код:
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),GetPlayerVirtualWorld(otherplayer));
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

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!.");
Note: I not tested it!
Reply


Messages In This Thread
Command /ride - problem with virtual world - by malver - 10.09.2009, 22:57
Re: Command /ride - problem with virtual world - by LuxurioN™ - 10.09.2009, 23:51
Re: Command /ride - problem with virtual world - by malver - 11.09.2009, 00:12

Forum Jump:


Users browsing this thread: 1 Guest(s)