ocmd:oreport(playerid,params[])
{
new pID, string[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED,"Du bist kein Admin und hast nicht das Recht Reports zu öffnen!");
if(sscanf(params,"u",pID)) return SendClientMessage(playerid, COLOR_WHITE,"/oreport [ID]");
format(string,sizeof(string),"** Administrator %s hat deinen Report geöffnet und bearbeitet ihn nun. Der Live Chat wurde aktiviert, nutze /rc!",Name(playerid));
SendClientMessage(pID,COLOR_ORANGE,string);
SendClientMessage(playerid,ORANGE,"Du hast den Report geöffnet und beginnst den Live Chat, du schreibst mit /sup!");
SetPVarInt(playerid,"LiveChat",1);
SetPVarInt(pID,"LiveChat",1);
SetPVarInt(pID,"Report",0);
SetPVarInt(playerid,"RPartner",pID);
SetPVarInt(pID,"RPartner",playerid);
return 1;
}
ocmd:sreport(playerid,params[])
{
new pID, string[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin und hast nicht das Recht Reports zu schließen!");
if(sscanf(params,"u",pID)) return SendClientMessage(playerid,COLOR_WHITE,"/sreport [ID]");
format(string,sizeof(string),"** Administrator %s hat den Livechat beendet.",Name(playerid));
SendClientMessage(pID,ORANGE,string);
SendClientMessage(playerid,COLOR_ORANGE,"Du hast den Report geschlossen!");
SetPVarInt(playerid,"LiveChat",0);
SetPVarInt(pID,"LiveChat",0);
DeletePVar(playerid,"RPartner");
DeletePVar(pID,"RPartner");
return 1;
}
ocmd:lreport(playerid,params[])
{
new pID, string[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin und hast nicht das Recht Reports zu schließen!");
if(sscanf(params,"u",pID)) return SendClientMessage(playerid,COLOR_WHITE,"/lreport [ID]");
format(string,sizeof(string),"** Administrator %s hat deinen Report gelöscht!",Name(playerid));
SendClientMessage(pID,COLOR_ORANGE,string);
SendClientMessage(playerid,COLOR_ORANGE,"Du hast den Report gelöscht!");
DeletePVar(pID,"Report");
return 1;
}
ocmd:rc(playerid,params[])
{
new text[128],string[128],string1[128];
if(GetPVarInt(playerid,"LiveChat") != 1) return SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Live Chat!");
if(sscanf(params,"s",text)) return SendClientMessage(playerid,COLOR_WHITE,"/rc [text]");
format(string,sizeof(string),"* (( %s: %s ))*",Name(playerid),text);
SendClientMessage(GetPVarInt(playerid,"RPartner"),COLOR_GREEN,string);
format(string1,sizeof(string1),"* (( %s: %s ))*",Name(playerid),text);
SendClientMessage(playerid,COLOR_GREEN,string1);
return 1;
}
ocmd:sup(playerid,params[])
{
new text[128],string[128],string1[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin und hast nicht das Recht den Admin Report Chat zu nutzen!");
if(GetPVarInt(playerid,"LiveChat") != 1) return SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Live Chat!");
if(sscanf(params,"s",text)) return SendClientMessage(playerid,COLOR_WHITE,"/sup [text]");
format(string,sizeof(string),"* (( %s: %s ))*",Name(playerid),text);
SendClientMessage(GetPVarInt(playerid,"RPartner"),COLOR_GREEN,string);
format(string1,sizeof(string1),"* (( %s: %s ))*",Name(playerid),text);
SendClientMessage(playerid,COLOR_GREEN,string1);
return 1;
}
Warum kann man Die Befehle nur mit Rcon ausführen?