Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if(playertextid == GUI_HuongDan[playerid][1]) // nhan cong viec
- {
- PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][10]);
- }
- if(playertextid == GUI_HuongDan[playerid][2]) // mua dien thoai
- {
- PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][6]); // muadienthoai p1
- GUI_MuaDienThoai[playerid] = 1;
- }
- else if(playertextid == GUI_HuongDan[playerid][17] && GUI_MuaDienThoai[playerid] == 1) // tiep theo
- {
- PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][7]); // muadienthoai p2
- PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][6]);
- PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][16]);
- GUI_MuaDienThoai[playerid] = 2;
- }
- else (playertextid == GUI_HuongDan[playerid][16] && GUI_MuaDienThoai[playerid] == 2) // quay lai
- {
- PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][6]); // muadienthoai p1
- PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][7]);
- PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][17]);
- }
- if(playertextid == GUI_HuongDan[playerid][3]) // mua phuong tien
- {
- PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][9]); // muaphuongtien p1
- }
- if(playertextid == GUI_HuongDan[playerid][5])
- {
- PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][11]);
- }
- if(playertextid == GUI_HuongDan[playerid][13])
- {
- for(new i = 0; i < 22; i++) {
- PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][i]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement