Hallo Liebe Community ich wollte ein Support System machen,die Grundlagen habe ich bereits,aber ich weiß nicht wie ich weiter machen soll,kann mir vllt. jemand helfen=
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(_:clickedid != INVALID_TEXT_DRAW)
{
if(clickedid == Sup8)
{
ShowPlayerDialog(playerid,DIALOG_BUGMELDEN,DIALOG_STYLE_INPUT,"Bug melden","Bitte gebe hier den Bug ein:","OK","");
}
if(clickedid == Sup7)
{
ShowPlayerDialog(playerid,DIALOG_CHEATER,DIALOG_STYLE_INPUT,"Cheater melden","Bitte gebe hier den Cheater ein:","OK","");
}
if(clickedid == Sup6)
{
ShowPlayerDialog(playerid,DIALOG_BESCHWERDE,DIALOG_STYLE_INPUT,"Beschwerde","Gib hier deine Beschwerde ein:","OK","");
}
if(clickedid == Sup4)
{
ShowPlayerDialog(playerid,DIALOG_SUPFRAGE,DIALOG_STYLE_INPUT,"Frage","Gib hier nun deine Frage ein:","OK","");
}
TextDrawHideForPlayer(playerid,Sup1);
TextDrawHideForPlayer(playerid,Sup2);
TextDrawHideForPlayer(playerid,Sup3);
TextDrawHideForPlayer(playerid,Sup4);
TextDrawHideForPlayer(playerid,Sup5);
TextDrawHideForPlayer(playerid,Sup6);
TextDrawHideForPlayer(playerid,Sup7);
TextDrawHideForPlayer(playerid,Sup8);
TextDrawHideForPlayer(playerid,Sup9);
TextDrawHideForPlayer(playerid,Sup10);
TextDrawHideForPlayer(playerid,Sup11);
CancelSelectTextDraw(playerid);
}
return 1;
}
ocmd:report(playerid,params[])
{
SendClientMessage(playerid,Rot,""COLB"Klicke das jeweilige Thema an, was du Reporten willst!");
TextDrawShowForPlayer(playerid,Sup1);
TextDrawShowForPlayer(playerid,Sup2);
TextDrawShowForPlayer(playerid,Sup3);
TextDrawShowForPlayer(playerid,Sup4);
TextDrawShowForPlayer(playerid,Sup5);
TextDrawShowForPlayer(playerid,Sup6);
TextDrawShowForPlayer(playerid,Sup7);
TextDrawShowForPlayer(playerid,Sup8);
TextDrawShowForPlayer(playerid,Sup9);
TextDrawShowForPlayer(playerid,Sup10);
TogglePlayerControllable(playerid,0);
SelectTextDraw(playerid, 0x00FF00FF);
return 0;
}
ocmd:aduty(playerid,params[]) {
new stringlabel[128],string[128],string1[128]; //WTF 512 ist bei weitem zuviel
if(SpielerInfo[playerid][pAdminlevel] < 1) return SendClientMessage(playerid,Rot,"Möglich ab: "COLO" Adminrank 1");
if(!GetPVarInt(playerid, "aDuty"))
{
new tn[32];
switch(SpielerInfo[playerid][pAdminlevel])
{
case 1:tn = "Probe Supporter";
case 2:tn = "Supporter";
case 3:tn = "Moderator";
case 4:tn = "Adminstrator";
case 5:tn = "Manager";
case 6:tn = "Leitung";
}
TextDrawShowForPlayer(playerid,Text:Sup12);
TextDrawShowForPlayer(playerid,Text:Sup13);
TextDrawShowForPlayer(playerid,Text:Sup14);
TextDrawShowForPlayer(playerid,Text:Sup15);
TextDrawShowForPlayer(playerid,Text:Sup16);
TextDrawShowForPlayer(playerid,Text:Sup17);
format(string,sizeof(string),""COLO"[%s]%s "COLB"ist in dem Admindienst gegangen!",adminrang(playerid),GetName(playerid));
SendClientMessageToAll(Rot,string);
SetPVarInt(playerid, "oldSkin", GetPlayerSkin(playerid));
SetPlayerSkin(playerid, 278);
SetPlayerHealth(playerid,100000);
SetPlayerArmour(playerid,100000);
format(stringlabel, sizeof(stringlabel), ""COLP"%s ist im Dienst.", tn);
setlabel[playerid] = Create3DTextLabel(stringlabel, Rot, 30.0, 40.0, 50.0, 40.0, 0, 0);
Attach3DTextLabelToPlayer(setlabel[playerid], playerid, 0.0, 0.0, 0.7);
SetPVarInt(playerid, "aDuty", 1);
}
else
{
TextDrawHideForPlayer(playerid,Text:Sup12);
TextDrawHideForPlayer(playerid,Text:Sup13);
TextDrawHideForPlayer(playerid,Text:Sup14);
TextDrawHideForPlayer(playerid,Text:Sup15);
TextDrawHideForPlayer(playerid,Text:Sup16);
TextDrawHideForPlayer(playerid,Text:Sup17);
format(string1,sizeof(string1),""COLO"[%s]%s "COLB"ist aus dem Admindienst gegangen!",adminrang(playerid),GetName(playerid));
SendClientMessageToAll(Rot,string1);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
SetPlayerSkin(playerid, GetPVarInt(playerid, "oldSkin"));
DeletePVar(playerid, "oldSkin"),
DeletePVar(playerid, "aDuty");
Delete3DTextLabel(setlabel[playerid]);
}
return 1;
}
Die verschiedenen Punkte also Bug,Beschwerden,Supfrage und Cheater sollten Adminlevel abhängig sein:
Supfrage ab ALevel 1
Beschwerden und Bug ab ALevel 3
Bug ab Level 4
Ich weiß nicht wie ich das in MYSQL speichern soll die Report's und die TextDraws updaten soll usw. ich bitte um hilfe