Advertisement
Guest User

Untitled

a guest
Jul 30th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  2. {
  3. if(clickedid == Text:INVALID_TEXT_DRAW)
  4. {
  5. if(clickedid == GUI_HuongDan[playerid][1]) // nhan cong viec
  6. {
  7. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][10]);
  8. }
  9. else if(clickedid == GUI_HuongDan[playerid][2])
  10. {
  11. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][6]);
  12. }
  13. else if(clickedid == GUI_HuongDan[playerid][3])
  14. {
  15. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][9]);
  16. }
  17. else if(clickedid == GUI_HuongDan[playerid][5])
  18. {
  19. PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][11]);
  20. }
  21. else if(clickedid == GUI_HuongDan[playerid][13])
  22. {
  23. for(new i = 0; i < 23; i++) {
  24. PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][i]);
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement