Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 10:23 04.04.2012 Orakel/Siedler
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
- new string[128], giveplayer[MAX_PLAYER_NAME];
- switch(dialogid) {
- case: 555 {
- if(!IsACop(playerid))return 0;
- for(new i = 0; i < sizeof(WantedReason); i++) {
- if(listitem==i)
- {
- new criminal = GetPVarInt(i, "clickedid");
- GetPlayerName(criminal, giveplayer, sizeof(giveplayer));
- PlayerInfo[criminal][pCrimes] += 1;
- WantedPoints[criminal] += (WantedReason[i][wr_count]*2);
- WantedLevel[criminal] += WantedReason[i][wr_count];
- SetPlayerCriminal(criminal, playerid, WantedReason[i][wr_name]);
- format(string,sizeof(string),"Du hast den Spieler %s %d Wanted/s wegen %s ausgestellt.", giveplayer, WantedReason[i][wr_count], WantedReason[i][wr_name]);
- SendClientMessage(playerid,COLOR_YELLOW, string);
- return 1;
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement