Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerClickTextDraw(playerid, Text:clickedid) {
- if(clickedid == ServerPoruke[22])
- {
- ShowUCP(playerid, playerid);
- CancelSelectTextDraw(playerid);
- }
- if(clickedid == ServerPoruke[25])
- {
- PlayerTextDrawSetString(playerid, DropDownMenuTD[6][playerid], "Banka:");
- UpdateBankTD(playerid);
- new stringula[15];
- if(PlayerInfo[playerid][xImaBRacun] == false) {
- PlayerTextDrawSetString(playerid, BankaIgraca[playerid], "Nema racuna");
- }
- else {
- format(stringula, sizeof(stringula), "%d$", PlayerInfo[playerid][xBRacun]);
- PlayerTextDrawSetString(playerid, BankaIgraca[playerid], stringula);
- }
- PlayerTextDrawShow(playerid, BankaIgraca[playerid]);
- PlayerTextDrawHide(playerid, ZlatoIgraca[playerid]);
- PlayerTextDrawHide(playerid, PlataIgraca[playerid]);
- for(new i = 0; i < 10; i ++) {
- PlayerTextDrawShow(playerid, DropDownMenuTD[i][playerid]);
- }
- SelectTextDraw(playerid, 0xFFFFFFFF);
- }
- if(clickedid == ServerPoruke[26])
- {
- PlayerTextDrawSetString(playerid, DropDownMenuTD[6][playerid], "Zlato:");
- UpdateZlatoTD(playerid);
- new stringula[15];
- format(stringula, sizeof(stringula), "%dg", PlayerInfo[playerid][xZlato]);
- PlayerTextDrawSetString(playerid, ZlatoIgraca[playerid], stringula);
- PlayerTextDrawShow(playerid, ZlatoIgraca[playerid]);
- PlayerTextDrawHide(playerid, BankaIgraca[playerid]);
- PlayerTextDrawHide(playerid, PlataIgraca[playerid]);
- for(new i = 0; i < 10; i ++) {
- PlayerTextDrawShow(playerid, DropDownMenuTD[i][playerid]);
- }
- SelectTextDraw(playerid, 0xFFFFFFFF);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment