Habe es so
//----------------------------------[ooc]-----------------------------------------------
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Du bist noch nicht Eingeloggt !");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " Du kannst nicht sprechen, du bist gemutet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "NUTZUNG: (/o)oc [ooc chat]");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
format(string, sizeof(string), "(( *%d Admin %s: %s))", PlayerInfo[playerid][pAdmin], sendername, result);
}
else if(PlayerInfo[playerid][pSupporter] >= 1)
{
format(string, sizeof(string), "(( *%d Supporter %s: %s))", PlayerInfo[playerid][pSupporter], sendername, result);
}
else return 1;
OOCOff(COLOR_OOC,string);
Log("OA-Chat.txt",string);
}
return 1;
}
if(strcmp(cmd, "/noshowme", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 3 && ShowMeAllowed == 1)
{
ShowMeAllowed = 0;
BroadCast(COLOR_GRAD2, " ShowMe Ausgeschaltet !");
}
else if (PlayerInfo[playerid][pAdmin] >= 3 && ShowMeAllowed == 0)
{
ShowMeAllowed = 1;
BroadCast(COLOR_GRAD2, " ShowMe Angeschaltet!");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Tu das Lieber nicht!");
}
}
return 1;
}
if(strcmp(cmd, "/noooc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1337 && (!noooc))
{
noooc = 1;
BroadCast(COLOR_GRAD2, " OOC Ausgeschaltet !");
}
else if (PlayerInfo[playerid][pAdmin] >= 1337 && (noooc))
{
noooc = 0;
BroadCast(COLOR_GRAD2, " OOC Angeschaltet!");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Tu das Lieber nicht!");
}
}
return 1;
}
//----------------------------------[advertise]-----------------------------------------------
if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0)
{
if(PlayerInfo[playerid][pLevel] >= 2)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Du bist noch nicht eingeloggt !");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid,3.0,-2036.2543,474.6458,35.1719))
{
SendClientMessage(playerid, COLOR_RED, "Du bist nicht am CNN Tower");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "NUTZUNG: (/ad)vertise [text]");
return 1;
}
if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1))
{
format(string, sizeof(string), "Bitte Versuch es Später wieder %d sekunden zwischen einer Advertisement !", (addtimer/1000));
SendClientMessage(playerid, COLOR_GRAD2, string);
return 1;
}
new payout = idx * 5;
if(GetPlayerMoney(playerid) < payout)
{
format(string, sizeof(string), "* Du hast %d characters benutzt das kostet $%d, du hast nicht genug.", offset, payout);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
GivePlayerMoney(playerid, - payout);
SBizzInfo[7][sbTill] += payout;
ExtortionSBiz(7, payout);
format(string, sizeof(string), "Werbung: %s, Von: %s PH: %d", result, sendername,PlayerInfo[playerid][pPnumber]);
OOCNews(TEAM_GROVE_COLOR,string);
format(string, sizeof(string), "~r~Abzug $%d~n~~w~Nachricht hat: %d Characters erreicht", payout, idx);
GameTextForPlayer(playerid, string, 5000, 5);
if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;}
}
}
else SendClientMessage(playerid,COLOR_RED,"Du brauchst Level 3 um eine /ad zu schreiben.");
return 1;
}
//----------------------------------[government]-----------------------------------------------
if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] != 2 && !IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, " Du bist kein Polizist !");
return 1;
}
if(PlayerInfo[playerid][pRank] < 5)
{
SendClientMessage(playerid, COLOR_GREY, " Du brauchst Rang 5 !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: (/gov)ernment [text]");
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Regierungsnachrichten ___________|");
if(PlayerInfo[playerid][pLeader] == 7)
{
format(string, sizeof(string), "Präsident %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2)
{
format(string, sizeof(string), "Chief %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 21)
{
format(string, sizeof(string), "FBI Direktor %s: %s", sendername, result);
}
else format(string, sizeof(string), "Beamter %s: %s", sendername, result);
SendClientMessageToAll(COLOR_DBLUE, string);
}
return 1;
}
//----------------------------------[togooc]-----------------------------------------------
if(strcmp(cmd, "/togooc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (!gOoc[playerid])
{
gOoc[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, " OOC chat channel Ausgeschaltet !");
}
else if (gOoc[playerid])
{
gOoc[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, " OOC chat channel Eingeschalten !");
}
}
return 1;
}
aber bekomme diese medung immer
pawno\include\core.inc(12) : error 010: invalid function or declaration
Ich hoffe ihr könnt helfen hab nix brauchbares per sufu gefunden