Advertisement
Omatter

Untitled

Jul 19th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. // tìm // Object va them cai nay ben tren
  2. #define THERATU (6070)
  3.  
  4. // them lenh
  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 1500 credits?", "Dong y", "Huy bo");
  10. }
  11. return 1;
  12. }
  13.  
  14. // tim public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) them vao day
  15. if(dialogid == THERATU)
  16. {
  17. if(response)
  18. {
  19. if(PlayerInfo[playerid][pCredits] >= 1500)
  20. {
  21. PlayerInfo[playerid][pWantedLevel] = 0;
  22. PlayerInfo[playerid][pBeingSentenced] = 0;
  23. SetPlayerToTeamColor(playerid);
  24. SetPlayerHealth(playerid, 100);
  25. SetPlayerWantedLevel(playerid, 0);
  26. PlayerInfo[playerid][pJailTime] = 0;
  27. SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
  28. SetPlayerInterior(playerid,0);
  29. PlayerInfo[playerid][pInt] = 0;
  30. SetPlayerVirtualWorld(playerid, 0);
  31. PlayerInfo[playerid][pVW] = 0;
  32. SetPlayerToTeamColor(playerid);
  33. PlayerInfo[playerid][pCredits] -=1500;
  34. SendClientMessageEx(playerid, COLOR_RED, "Ban da mua the ra tu voi gia 1500 credits!");
  35. }
  36. else return SendClientMessageEx(playerid, COLOR_RED, "Ban khong du 1500 credits du mua the ra tu!");
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement