habe hier 2 befehle:
ocmd:gethere(playerid,params[])
{
if(!Admin(playerid,2))return SendClientMessage(playerid,ROT,"Du bist kein Admin [2]");
new pID, string[128];
if(sscanf(params,"u",pID))return SendClientMessage(playerid,ROT,"Benutze: /gethere [ID]");
SetPlayerInterior(pID, GetPlayerInterior(playerid));
SetPlayerVirtualWorld(pID, GetPlayerVirtualWorld(playerid));
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
SetPlayerPos(pID,X,Y,Z);
format(string,sizeof string,"Admin: %s dich zu sich geportet!",Spielername(playerid));
SendClientMessage(pID,BLAU,string);
format(string, sizeof string,"Du hast %s zu dir geportet!",Spielername(pID));
SendClientMessage(playerid,BLAU,string);
return 1;
}
ocmd:goto(playerid,params[])
{
if(!Admin(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Admin [1]");
new pID;
if(sscanf(params,"u",pID))return SendClientMessage(playerid,ROT,"Benutze: /goto [ID]");
SetPlayerInterior(playerid, GetPlayerInterior(pID));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(pID));
new Float:X,Float:Y,Float:Z;
GetPlayerPos(pID,X,Y,Z);
SetPlayerPos(playerid,X,Y,Z);
return 1;
}
aber egal ob ich /goto oder /gethere mache.. mein interior/virtuelle welt, bzw, des spielers wird nicht geändert.
Woran liegt es?