Advertisement
Guest User

Siedler/Orakel

a guest
Apr 4th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. // 10:23 04.04.2012 Orakel/Siedler
  2. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
  3. new string[128], giveplayer[MAX_PLAYER_NAME];
  4. switch(dialogid) {
  5. case: 555 {
  6. if(!IsACop(playerid))return 0;
  7. for(new i = 0; i < sizeof(WantedReason); i++) {
  8. if(listitem==i)
  9. {
  10. new criminal = GetPVarInt(i, "clickedid");
  11. GetPlayerName(criminal, giveplayer, sizeof(giveplayer));
  12. PlayerInfo[criminal][pCrimes] += 1;
  13. WantedPoints[criminal] += (WantedReason[i][wr_count]*2);
  14. WantedLevel[criminal] += WantedReason[i][wr_count];
  15. SetPlayerCriminal(criminal, playerid, WantedReason[i][wr_name]);
  16. format(string,sizeof(string),"Du hast den Spieler %s %d Wanted/s wegen %s ausgestellt.", giveplayer, WantedReason[i][wr_count], WantedReason[i][wr_name]);
  17. SendClientMessage(playerid,COLOR_YELLOW, string);
  18. return 1;
  19. }
  20. }
  21. }
  22. }
  23. return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement