HeyHoo,
Ich baue mir grade ein Supportsystem zusammen.
Habe bei OnPlayerText nun diese Zeilenfolge eingescriptet:
public OnPlayerText(playerid, text[])
{
new string[128];
if(realchat)
{
if(GetPVarInt(playerid,"Mute") == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s sagt: %s", sendername, text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 0;
}
else if(GetPVarInt(playerid,"Mute") != 0)
{
SendClientMessage(playerid,Rot,"Du wurdest Gemutet!");
return 0;
}
else if(InSupport[playerid] == 1)
{
new text1[128];
new adminlevel[56];
if(GetPVarInt(playerid,"Adminlevel")==1)format(adminlevel,sizeof(adminlevel),"Supporter");
else if(GetPVarInt(playerid,"Adminlevel")==3)format(adminlevel,sizeof(adminlevel),"Moderator");
else if(GetPVarInt(playerid,"Adminlevel")==1335)format(adminlevel,sizeof(adminlevel),"Admin");
else if(GetPVarInt(playerid,"Adminlevel")==1337)format(adminlevel,sizeof(adminlevel),"Lead-Admin");
else if(GetPVarInt(playerid,"Adminlevel")==1338)format(adminlevel,sizeof(adminlevel),"Serverinhaber");
GetPlayerName(playerid, sendername, sizeof(sendername));
if(InSupport[playerid] == 1)
{
format(string,sizeof(string),"%s(%s) sagt: %s",sendername,adminlevel,text);
}
else if(InSupportt[playerid] == 1)
{
format(string,sizeof(string),"%s sagt: %s",sendername,text1);
}
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(InSupport[i] == 1)
{
SendClientMessage(i,dr,text);
SendClientMessage(i,dr,text1);
SendClientMessage(playerid,dr,text);
SendClientMessage(playerid,dr,text1);
return 1;
}
}
}
}
else if(InSupportt[playerid] == 1)
{
new text1[128];
new adminlevel[56];
if(GetPVarInt(playerid,"Adminlevel")==1)format(adminlevel,sizeof(adminlevel),"Supporter");
else if(GetPVarInt(playerid,"Adminlevel")==3)format(adminlevel,sizeof(adminlevel),"Moderator");
else if(GetPVarInt(playerid,"Adminlevel")==1335)format(adminlevel,sizeof(adminlevel),"Admin");
else if(GetPVarInt(playerid,"Adminlevel")==1337)format(adminlevel,sizeof(adminlevel),"Lead-Admin");
else if(GetPVarInt(playerid,"Adminlevel")==1338)format(adminlevel,sizeof(adminlevel),"Serverinhaber");
GetPlayerName(playerid, sendername, sizeof(sendername));
if(InSupport[playerid] == 1)
{
format(string,sizeof(string),"%s(%s) sagt: %s",sendername,adminlevel,text);
}
else if(InSupportt[playerid] == 1)
{
format(string,sizeof(string),"%s sagt: %s",sendername,text1);
}
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(InSupport[i] == 1)
{
SendClientMessage(i,dr,text);
SendClientMessage(i,dr,text1);
SendClientMessage(playerid,dr,text);
SendClientMessage(playerid,dr,text1);
return 1;
}
}
}
}
}
return 1;
}
{
if(IsPlayerConnected(i))
{
if(InSupport[i] == 1)
{
SendClientMessage(i,dr,text);
SendClientMessage(i,dr,text1);
SendClientMessage(playerid,dr,text);
SendClientMessage(playerid,dr,text1);
return 1;
}
}
}
}
}
return 1;
}
Errors, gibt es keine
doch InGame, wenn Ich den Support meines Freundes annehme, können wir den dr (dunkelrot) Text nicht sehen
Bitte um Hilfe!
lg
DJ Deagle