Tag
Also wenn ich als cop/army/fbi /su eingebe
steht da: "Du bist kein Beamter" Obwohl ich ja Cop/Army/Fbiler bin^^
Hier die Zeile
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new x_job[128];
if(OnDuty[playerid]==0)
{
SendClientMessage(playerid, COLOR_GREY, "Du bist kein Beamter!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Verwendung: (/su)spect [Playerid] [kürzel]");
return 1;
}
x_job = strtok(cmdtext, idx);
if(!strlen(x_job ))
{
SendClientMessage(playerid, COLOR_GRAD1, " /suspect [Playerid/Name] [kürzel]");
return 1;
}
new turnmes[128];
new turned[MAX_PLAYER_NAME];
GetPlayerName(playerid, turned, sizeof(turned));
new points = WantedPoints[playerid];
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if (gTeam[playerid] == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
for(new i = 0; i <MAX_PLAYERS; i++)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedLevel[giveplayerid] >= 6)
{
SendClientMessage(playerid,COLOR_GRAD2,"Der Spieler hat schon 6 Wanteds");
return 1;
}