ocmd:beobachten(playerid,params[])
{
if(!isPlayerAnAdmin(playerid,5)) return SendClientMessage(playerid,ROT,"Fehler : Du bist kein Admin!");
new pID,string[22];
new name[MAX_PLAYER_NAME];
if(sscanf(params,"u",pID)) return SendClientMessage(playerid,hellblau,"/beobachten [ID]");
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Du beobachtest %s!",name);
SendClientMessage(playerid,Grün,string);
{
PlayerSpectatePlayer(playerid,pID,1);
}
return 1;
}
Wo liegt dort der Fehler?