hallo wen ich /gethere mache passiert nix :
ZitatAlles anzeigenif(strcmp(cmd, "/gethere", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /gethere [playerid]");
return 1;
}
new Float:plocx,Float:plocy,Float:plocz;
new plo;
plo = ReturnUser(tmp);
if (IsPlayerConnected(plo))
{
if(plo != INVALID_PLAYER_ID)
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
GetPlayerPos(playerid, plocx, plocy, plocz);
if (GetPlayerState(plo) == 2)
{
TelePos[plo][0] = 0.0;
TelePos[plo][1] = 0.0;
new tmpcar = GetPlayerVehicleID(plo);
SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
}
else
{
SetPlayerPos(plo,plocx,plocy+2, plocz);
}
PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal];
PlayerInfo[plo][pInt] = PlayerInfo[playerid][pInt];
SetPlayerInterior(plo,PlayerInfo[playerid][pInt]);
SetPlayerVirtualWorld(plo,GetPlayerVirtualWorld(playerid));
SendClientMessage(plo, COLOR_GRAD1, " Du wurdest Teleportiert");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du bist kein Admin!");
}
}
}
else
{
format(string, sizeof(string), " %d ist kein aktiver Spieler.", plo);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}