NTNGuyenthanh

theratu

Aug 22nd, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. // tim #define add duoi no
  2. #define THERATU (6070)
  3.  
  4. // add tren cmd makeadmin hoac cuoi gm
  5. CMD:theratu(playerid, params[])
  6. {
  7. if(PlayerInfo[playerid][pJailTime] > 0)
  8. {
  9. ShowPlayerDialog(playerid, THERATU, DIALOG_STYLE_MSGBOX, "Card Out Prison", "{FFFFFF}Ban co muon roi khoi day ngay bay gio voi gia 200 credits?", "Dong y", "Huy bo");
  10. }
  11. return 1;
  12. }
  13.  
  14.  
  15.  
  16. // tim public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) add duoi no
  17. //theratu
  18. if(dialogid == THERATU)
  19. {
  20. if(response)
  21. {
  22. if(PlayerInfo[playerid][pCredits] >= 200)
  23. {
  24. PlayerInfo[playerid][pWantedLevel] = 0;
  25. PlayerInfo[playerid][pBeingSentenced] = 0;
  26. SetPlayerToTeamColor(playerid);
  27. SetPlayerHealth(playerid, 100);
  28. SetPlayerWantedLevel(playerid, 0);
  29. PlayerInfo[playerid][pJailTime] = 0;
  30. SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
  31. SetPlayerInterior(playerid,0);
  32. PlayerInfo[playerid][pInt] = 0;
  33. SetPlayerVirtualWorld(playerid, 0);
  34. PlayerInfo[playerid][pVW] = 0;
  35. SetPlayerToTeamColor(playerid);
  36. PlayerInfo[playerid][pCredits] -=200;
  37. SendClientMessageEx(playerid, COLOR_RED, "Ban da mua the ra tu voi gia 200 credits!");
  38. }
  39. else return SendClientMessageEx(playerid, COLOR_RED, "Ban khong du 200 credits du mua the ra tu!");
  40. }
  41. }
  42.  
  43.  
  44. //NT
Advertisement
Add Comment
Please, Sign In to add comment