Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < a_samp >
- #include < zcmd >
- #undef MAX_PLAYERS
- #define MAX_PLAYERS 50 // Prilagoditi
- new PlayerText:GunTD[ MAX_PLAYERS ][ 15 ];
- new Stranica[ MAX_PLAYERS ];
- public OnPlayerConnect(playerid)
- {
- GunTD[playerid][0] = CreatePlayerTextDraw(playerid, 200.058807, 153.250015, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][0], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][0], 238.000000, 128.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][0], -5963521);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][0], 4);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][0], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][0], 0);
- GunTD[playerid][1] = CreatePlayerTextDraw(playerid, 201.941131, 155.000000, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][1], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][1], 234.000000, 124.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][1], 255);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][1], 4);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][1], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][1], 0);
- GunTD[playerid][2] = CreatePlayerTextDraw(playerid, 249.941085, 148.583328, "ld_beat:chit");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][2], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][2], 26.000000, 30.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][2], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][2], -5963521);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][2], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][2], 4);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][2], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][2], 0);
- GunTD[playerid][3] = CreatePlayerTextDraw(playerid, 201.470642, 154.416625, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][3], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][3], 62.000000, 19.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][3], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][3], -5963521);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][3], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][3], 4);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][3], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][3], 0);
- GunTD[playerid][4] = CreatePlayerTextDraw(playerid, 209.999984, 155.000015, "Deagle");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][4], 0.304941, 1.483333);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][4], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][4], 255);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][4], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][4], 2);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][4], 0);
- GunTD[playerid][5] = CreatePlayerTextDraw(playerid, 364.294158, 147.999969, "ld_beat:chit");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][5], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][5], 26.000000, 30.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][5], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][5], -5963521);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][5], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][5], 4);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][5], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][5], 0);
- GunTD[playerid][6] = CreatePlayerTextDraw(playerid, 375.588409, 153.833282, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][6], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][6], 62.000000, 19.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][6], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][6], -5963521);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][6], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][6], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][6], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][6], 4);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][6], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][6], 0);
- GunTD[playerid][7] = CreatePlayerTextDraw(playerid, 375.647125, 155.000015, "Cena:_5000$");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][7], 0.217411, 1.541666);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][7], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][7], 255);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][7], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][7], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][7], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][7], 2);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][7], 1);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][7], 0);
- GunTD[playerid][8] = CreatePlayerTextDraw(playerid, 219.823547, 139.833328, "");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][8], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][8], 162.000000, 152.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][8], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][8], -1);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][8], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][8], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][8], 1090519040);
- PlayerTextDrawFont(playerid, GunTD[playerid][8], 5);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][8], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][8], 0);
- PlayerTextDrawSetPreviewModel(playerid, GunTD[playerid][8], 355);
- PlayerTextDrawSetPreviewRot(playerid, GunTD[playerid][8], 0.000000, 0.000000, 180.000000, 3.000000);
- GunTD[playerid][9] = CreatePlayerTextDraw(playerid, 236.764755, 206.916595, "ld_beat:left");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][9], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][9], 18.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][9], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][9], -5963521);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][9], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][9], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][9], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][9], 4);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][9], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][9], 0);
- PlayerTextDrawSetSelectable(playerid, GunTD[playerid][9], true);
- GunTD[playerid][10] = CreatePlayerTextDraw(playerid, 382.646972, 206.916610, "ld_beat:right");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][10], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][10], 18.000000, 13.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][10], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][10], -5963521);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][10], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][10], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][10], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][10], 4);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][10], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][10], 0);
- PlayerTextDrawSetSelectable(playerid, GunTD[playerid][10], true);
- GunTD[playerid][11] = CreatePlayerTextDraw(playerid, 262.647125, 255.916641, "ld_beat:chit");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][11], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][11], 26.000000, 30.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][11], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][11], -5963521);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][11], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][11], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][11], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][11], 4);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][11], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][11], 0);
- GunTD[playerid][12] = CreatePlayerTextDraw(playerid, 343.588104, 255.916641, "ld_beat:chit");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][12], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][12], 26.000000, 30.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][12], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][12], -5963521);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][12], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][12], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][12], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][12], 4);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][12], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][12], 0);
- GunTD[playerid][13] = CreatePlayerTextDraw(playerid, 274.411804, 261.166625, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][13], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, GunTD[playerid][13], 83.000000, 19.000000);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][13], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][13], -5963521);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][13], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][13], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][13], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][13], 4);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][13], 0);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][13], 0);
- PlayerTextDrawSetSelectable(playerid, GunTD[playerid][13], true);
- GunTD[playerid][14] = CreatePlayerTextDraw(playerid, 287.646881, 263.500030, "]_KUPI_]");
- PlayerTextDrawLetterSize(playerid, GunTD[playerid][14], 0.304941, 1.483333);
- PlayerTextDrawAlignment(playerid, GunTD[playerid][14], 1);
- PlayerTextDrawColor(playerid, GunTD[playerid][14], 255);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][14], 0);
- PlayerTextDrawSetOutline(playerid, GunTD[playerid][14], 0);
- PlayerTextDrawBackgroundColor(playerid, GunTD[playerid][14], 255);
- PlayerTextDrawFont(playerid, GunTD[playerid][14], 2);
- PlayerTextDrawSetProportional(playerid, GunTD[playerid][14], 1);
- PlayerTextDrawSetShadow(playerid, GunTD[playerid][14], 0);
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if(playertextid == GunTD[ playerid ][ 9 ])
- {
- if(Stranica[ playerid ] == 1)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 10;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 373);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Armour");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_7000$");
- }
- else if(Stranica[ playerid ] == 2)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 1;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 348);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Deagle");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_4000$");
- }
- else if(Stranica[ playerid ] == 3)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 2;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 346);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "9mm");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_2500$");
- }
- else if(Stranica[ playerid ] == 4)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 3;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 355);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "AK-47");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_5000$");
- }
- else if(Stranica[ playerid ] == 5)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 4;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 356);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "M4");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_5000$");
- }
- else if(Stranica[ playerid ] == 6)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 5;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 353);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "M5");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_4500$");
- }
- else if(Stranica[ playerid ] == 7)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 6;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 352);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Uzi");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_4000$");
- }
- else if(Stranica[ playerid ] == 8)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 7;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 372);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Tec-9");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_4000$");
- }
- else if(Stranica[ playerid ] == 9)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 8;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 349);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Shotgun");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_5000$");
- }
- else if(Stranica[ playerid ] == 10)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 9;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 358);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Sniper");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_8500$");
- }
- }
- else if(playertextid == GunTD[ playerid ][ 10 ])
- {
- if(Stranica[ playerid ] == 1)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 2;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 346);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "9mm");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_2500$");
- }
- else if(Stranica[ playerid ] == 2)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 3;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 355);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "AK-47");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_5000$");
- }
- else if(Stranica[ playerid ] == 3)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 4;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 356);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "M4");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_5000$");
- }
- else if(Stranica[ playerid ] == 4)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 5;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 353);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "M5");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_4500$");
- }
- else if(Stranica[ playerid ] == 5)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 6;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 352);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Uzi");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_4000$");
- }
- else if(Stranica[ playerid ] == 6)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 7;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 372);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Tec-9");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_4000$");
- }
- else if(Stranica[ playerid ] == 7)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 8;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 349);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Shotgun");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_5000$");
- }
- else if(Stranica[ playerid ] == 8)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 9;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 358);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Sniper");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_8500$");
- }
- else if(Stranica[ playerid ] == 9)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 10;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 373);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Armour");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_7000$");
- }
- else if(Stranica[ playerid ] == 10)
- {
- PlayerTextDrawHide(playerid, GunTD[ playerid ][ 8 ]);
- Stranica[ playerid ] = 1;
- PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 348);
- PlayerTextDrawShow(playerid, GunTD[ playerid ][ 8 ]);
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Deagle");
- PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "Cena:_4000$");
- }
- }
- else if(playertextid == GunTD[ playerid ][ 13 ])
- {
- if(Stranica[ playerid ] == 1)
- {
- for(new i; i < 15; i++) { PlayerTextDrawHide(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 0; CancelSelectTextDraw(playerid); }
- if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, -1, "Nemate dovoljno novca.");
- GivePlayerMoney(playerid, -4000);
- GivePlayerWeapon(playerid, 24, 100);
- SendClientMessage(playerid, -1, "Uspesno ste kupili Deagle za 4000$ ( 100 metkova ).");
- }
- else if(Stranica[ playerid ] == 2)
- {
- for(new i; i < 15; i++) { PlayerTextDrawHide(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 0; CancelSelectTextDraw(playerid); }
- if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, -1, "Nemate dovoljno novca.");
- GivePlayerMoney(playerid, -2500);
- GivePlayerWeapon(playerid, 22, 100);
- SendClientMessage(playerid, -1, "Uspesno ste kupili 9mm za 2500$ ( 100 metkova ).");
- }
- else if(Stranica[ playerid ] == 3)
- {
- for(new i; i < 15; i++) { PlayerTextDrawHide(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 0; CancelSelectTextDraw(playerid); }
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, -1, "Nemate dovoljno novca.");
- GivePlayerMoney(playerid, -5000);
- GivePlayerWeapon(playerid, 30, 150);
- SendClientMessage(playerid, -1, "Uspesno ste kupili AK-47 za 5000$ ( 150 metkova ).");
- }
- else if(Stranica[ playerid ] == 4)
- {
- for(new i; i < 15; i++) { PlayerTextDrawHide(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 0; CancelSelectTextDraw(playerid); }
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, -1, "Nemate dovoljno novca.");
- GivePlayerMoney(playerid, -5000);
- GivePlayerWeapon(playerid, 31, 150);
- SendClientMessage(playerid, -1, "Uspesno ste kupili M4 za 5000$ ( 150 metkova ).");
- }
- else if(Stranica[ playerid ] == 5)
- {
- for(new i; i < 15; i++) { PlayerTextDrawHide(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 0; CancelSelectTextDraw(playerid); }
- if(GetPlayerMoney(playerid) < 4500) return SendClientMessage(playerid, -1, "Nemate dovoljno novca.");
- GivePlayerMoney(playerid, -4500);
- GivePlayerWeapon(playerid, 29, 150);
- SendClientMessage(playerid, -1, "Uspesno ste kupili M5 za 4500$ ( 150 metkova ).");
- }
- else if(Stranica[ playerid ] == 6)
- {
- for(new i; i < 15; i++) { PlayerTextDrawHide(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 0; CancelSelectTextDraw(playerid); }
- if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, -1, "Nemate dovoljno novca.");
- GivePlayerMoney(playerid, -4000);
- GivePlayerWeapon(playerid, 28, 150);
- SendClientMessage(playerid, -1, "Uspesno ste kupili Uzi za 4000$ ( 150 metkova ).");
- }
- else if(Stranica[ playerid ] == 7)
- {
- for(new i; i < 15; i++) { PlayerTextDrawHide(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 0; CancelSelectTextDraw(playerid); }
- if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, -1, "Nemate dovoljno novca.");
- GivePlayerMoney(playerid, -4000);
- GivePlayerWeapon(playerid, 32, 150);
- SendClientMessage(playerid, -1, "Uspesno ste kupili Tec-9 za 4000$ ( 150 metkova ).");
- }
- else if(Stranica[ playerid ] == 8)
- {
- for(new i; i < 15; i++) { PlayerTextDrawHide(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 0; CancelSelectTextDraw(playerid); }
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, -1, "Nemate dovoljno novca.");
- GivePlayerMoney(playerid, -5000);
- GivePlayerWeapon(playerid, 25, 50);
- SendClientMessage(playerid, -1, "Uspesno ste kupili Shotgun za 5000$ ( 50 metkova ).");
- }
- else if(Stranica[ playerid ] == 9)
- {
- for(new i; i < 15; i++) { PlayerTextDrawHide(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 0; CancelSelectTextDraw(playerid); }
- if(GetPlayerMoney(playerid) < 8500) return SendClientMessage(playerid, -1, "Nemate dovoljno novca.");
- GivePlayerMoney(playerid, -8500);
- GivePlayerWeapon(playerid, 34, 30);
- SendClientMessage(playerid, -1, "Uspesno ste kupili Sniper za 8500$ ( 30 metkova ).");
- }
- else if(Stranica[ playerid ] == 10)
- {
- for(new i; i < 15; i++) { PlayerTextDrawHide(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 0; CancelSelectTextDraw(playerid); }
- if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, -1, "Nemate dovoljno novca.");
- GivePlayerMoney(playerid, -7000);
- SetPlayerArmour(playerid, 100);
- SendClientMessage(playerid, -1, "Uspesno ste kupili Armour za 7000$");
- }
- }
- return 1;
- }
- CMD:kupigun(playerid, params[])
- {
- if(Stranica[ playerid ] > 0) { for(new i; i < 15; i++) { PlayerTextDrawHide(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 0; CancelSelectTextDraw(playerid); } }
- else { for(new i; i < 15; i++) { PlayerTextDrawSetPreviewModel(playerid, GunTD[ playerid ][ 8 ], 348); PlayerTextDrawShow(playerid, GunTD[ playerid ][ i ]); Stranica[ playerid ] = 1; SelectTextDraw(playerid, 0xFFA500FF); PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 4 ], "Deagle"); PlayerTextDrawSetString(playerid, GunTD[ playerid ][ 7 ], "4000$"); } }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement