ocmd:go(playerid,params[])
{
if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,ROT,"Info: Du bist kein Admin!");
{
new pID,string[128],string2[128];
if(sscanf(params,"u",pID))return SendClientMessage(playerid,HELLBLAU,"FEHLER: /go [ID/Name]");
new Float:x, Float:y, Float:z;
new car = GetPlayerVehicleID(playerid);
GetPlayerPos(pID,x,y,z);
SetPlayerInterior(playerid,GetPlayerInterior(pID));
SetPlayerPos(playerid,x+2,y+2,z+2);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x+2, y+2, z+2);
PutPlayerInVehicle(playerid,car,0);
}
{
format(string,128,"Du hast dich zu %s teleportiert.",SpielerName(pID));
format(string2,128,"%s hat sich zu dir teleportiert.",SpielerName(playerid));
SendClientMessage(pID,ORANGE,string2);
SendClientMessage(playerid,ORANGE,string);
}
}
return 1;
}
ocmd:gethere(playerid,params[])
{
if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Admin");
new string[128],player;
if(sscanf(params,"u",player))return SendClientMessage(playerid,HELLBLAU,"FEHLER: /gethere [ID/Name]");
if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Admin");
{
new sendername[MAX_PLAYER_NAME],playername[MAX_PLAYER_NAME];
GetPlayerName(player,sendername,sizeof sendername);
GetPlayerName(playerid,playername,sizeof playername);
format(string,sizeof string,"Admin %s hat dich zu sich geportet.",playername);
SendClientMessage(player,BLAU,string);
format(string,sizeof string,"Du hast %s zu dir geportet.",sendername);
SendClientMessage(playerid,BLAU,string);
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
if(IsPlayerInAnyVehicle(player))
{
new autoid = GetPlayerVehicleID(player);
SetVehiclePos(autoid, X, Y+4, Z);
}
else
{
SetPlayerPos(player,X,Y+2,Z);
}
}
return 1;
}