Advertisement
Guest User

Untitled

a guest
Jul 30th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  2. {
  3. if(playertextid == GUI_HuongDan[playerid][1]) // nhan cong viec
  4. {
  5. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][10]);
  6. }
  7.  
  8. if(playertextid == GUI_HuongDan[playerid][2]) // mua dien thoai
  9. {
  10. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][6]); // muadienthoai p1
  11. GUI_MuaDienThoai[playerid] = 1;
  12. }
  13. else if(playertextid == GUI_HuongDan[playerid][17] && GUI_MuaDienThoai[playerid] == 1) // tiep theo
  14. {
  15. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][7]); // muadienthoai p2
  16. PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][6]);
  17. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][16]);
  18. GUI_MuaDienThoai[playerid] = 2;
  19. }
  20. else (playertextid == GUI_HuongDan[playerid][16] && GUI_MuaDienThoai[playerid] == 2) // quay lai
  21. {
  22. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][6]); // muadienthoai p1
  23. PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][7]);
  24. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][17]);
  25. }
  26. if(playertextid == GUI_HuongDan[playerid][3]) // mua phuong tien
  27. {
  28. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][9]); // muaphuongtien p1
  29. }
  30. if(playertextid == GUI_HuongDan[playerid][5])
  31. {
  32. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][11]);
  33. }
  34. if(playertextid == GUI_HuongDan[playerid][13])
  35. {
  36. for(new i = 0; i < 22; i++) {
  37. PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][i]);
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement