if(strcmp(cmd, "/suspect", true) == 0) { if (gTeam[playerid] == TEAM_COP) { new player[100]; new stringS[255]; new suspectid; new reason; new Wanted[ MAX_PLAYERS ]; new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /suspect [playerid] [reason]"); return 1; } suspectid = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /suspect [playerid] [reason]"); return 1; } reason = strval(tmp); Wanted[suspectid] = GetPlayerWantedLevel(suspectid); if (Wanted[suspectid] <= 6 ) { SetPlayerWantedLevel(suspectid, GetPlayerWantedLevel(suspectid) + 1); } GetPlayerName(playerid, player, MAX_PLAYER_NAME); format(stringS, sizeof(stringS),"xadmin/Users/%s.ini",suspectid); dini_IntSet(stringS,"Wanted",Wanted[suspectid]); new suspectname; new string[255]; new string2[255]; GetPlayerName(suspectid, suspectname, sizeof(suspectname)); format(string, 256,"All units, we have a suspect named %s (%s) wanted level %d.", suspectname, suspectid, Wanted[suspectid]); format(string2, 256,"He has commit the follow crime: %s. Possible armed.", reason); SendMessageToTeam(TEAM_COP, COLOR_LIGHTBLUE,"---------------------HEAD QUARTERS---------------------"); SendMessageToTeam(TEAM_COP, COLOR_LIGHTBLUE, string); SendMessageToTeam(TEAM_COP, COLOR_LIGHTBLUE, string2); SendMessageToTeam(TEAM_COP, COLOR_LIGHTBLUE,"-------------------------------------------------------"); return 1; } else { SendClientMessage(playerid, COLOR_RED,"Your not a Cop!"); return 1; } }