Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //POTREBNI UNKLUDOVI MJAUUUUUU :
- #include <a_samp>
- #include <streamer>
- #include <zcmd>
- #include <winteredition>
- //MJAUUU BEBOOOO <3 :
- new bool:WE_PanelShowed[MAX_PLAYERS];
- new bool:uKapica[MAX_PLAYERS];
- new bool:uSneg[MAX_PLAYERS];
- new bool:uCBreath[MAX_PLAYERS];
- new bool:uSUlice[MAX_PLAYERS];
- new PlayerText:WE_Panel[MAX_PLAYERS][20];
- new panel;
- main ( ) {
- print("Mjau - Brate mislim da ti se ucito panel !");
- }
- //MJAU BRATEEEEE
- stock WinterPanelTDControl(playerid, bool:show) {
- if(show == true) {
- WE_Panel[playerid][0] = CreatePlayerTextDraw(playerid, 223.647079, 191.166656, "box");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][0], 0.000000, 11.035296);
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][0], 449.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][0], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][0], -1);
- PlayerTextDrawUseBox(playerid, WE_Panel[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, WE_Panel[playerid][0], 170);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][0], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][0], 1);
- WE_Panel[playerid][1] = CreatePlayerTextDraw(playerid, 226.341140, 184.633270, "box");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][1], 0.000000, 0.729411);
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][1], 312.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][1], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][1], 3373055);
- PlayerTextDrawUseBox(playerid, WE_Panel[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid, WE_Panel[playerid][1], 1937498623);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][1], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][1], 1);
- WE_Panel[playerid][2] = CreatePlayerTextDraw(playerid, 229.046890, 182.416641, "WINTER_EDITION_PANEL");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][2], 0.176470, 1.051666);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][2], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][2], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][2], 2);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][2], 1);
- WE_Panel[playerid][3] = CreatePlayerTextDraw(playerid, 445.394165, 182.166748, "ld_chat:thumbdn");
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][3], 8.000000, 12.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][3], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][3], -1);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][3], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][3], 4);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][3], 0);
- PlayerTextDrawSetSelectable(playerid, WE_Panel[playerid][3], true);
- WE_Panel[playerid][4] = CreatePlayerTextDraw(playerid, 231.176605, 204.583358, "box");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][4], 0.000000, 0.917646);
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][4], 444.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][4], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][4], -1);
- PlayerTextDrawUseBox(playerid, WE_Panel[playerid][4], 1);
- PlayerTextDrawBoxColor(playerid, WE_Panel[playerid][4], 255);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][4], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][4], 1);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][4], 1);
- WE_Panel[playerid][5] = CreatePlayerTextDraw(playerid, 231.176605, 223.284500, "box");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][5], 0.000000, 0.917646);
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][5], 444.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][5], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][5], -1);
- PlayerTextDrawUseBox(playerid, WE_Panel[playerid][5], 1);
- PlayerTextDrawBoxColor(playerid, WE_Panel[playerid][5], 255);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][5], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][5], 1);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][5], 1);
- WE_Panel[playerid][6] = CreatePlayerTextDraw(playerid, 231.176605, 242.385665, "box");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][6], 0.000000, 0.917646);
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][6], 444.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][6], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][6], -1);
- PlayerTextDrawUseBox(playerid, WE_Panel[playerid][6], 1);
- PlayerTextDrawBoxColor(playerid, WE_Panel[playerid][6], 255);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][6], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][6], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][6], 1);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][6], 1);
- WE_Panel[playerid][7] = CreatePlayerTextDraw(playerid, 231.176605, 262.686889, "box");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][7], 0.000000, 0.917646);
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][7], 444.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][7], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][7], -1);
- PlayerTextDrawUseBox(playerid, WE_Panel[playerid][7], 1);
- PlayerTextDrawBoxColor(playerid, WE_Panel[playerid][7], 255);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][7], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][7], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][7], 1);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][7], 1);
- WE_Panel[playerid][8] = CreatePlayerTextDraw(playerid, 231.358810, 203.783264, "LD_SPAC:white");
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][8], 93.000000, 10.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][8], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][8], 268435456);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][8], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][8], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][8], 4);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][8], 0);
- PlayerTextDrawSetSelectable(playerid, WE_Panel[playerid][8], true);
- WE_Panel[playerid][9] = CreatePlayerTextDraw(playerid, 238.422088, 202.249984, "KAPICA");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][9], 0.232941, 1.197499);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][9], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][9], -1);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][9], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][9], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][9], 2);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][9], 1);
- WE_Panel[playerid][10] = CreatePlayerTextDraw(playerid, 385.529327, 203.416656, "ISKLJUCENO");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][10], 0.191999, 1.110000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][10], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][10], -16776961);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][10], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][10], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][10], 2);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][10], 1);
- WE_Panel[playerid][11] = CreatePlayerTextDraw(playerid, 231.258804, 222.384399, "LD_SPAC:white");
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][11], 93.000000, 10.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][11], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][11], 268435456);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][11], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][11], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][11], 4);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][11], 0);
- PlayerTextDrawSetSelectable(playerid, WE_Panel[playerid][11], true);
- WE_Panel[playerid][12] = CreatePlayerTextDraw(playerid, 236.816909, 221.283218, "PADANJE_SNEGA");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][12], 0.232941, 1.197499);
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][12], 312.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][12], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][12], -1);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][12], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][12], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][12], 2);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][12], 1);
- WE_Panel[playerid][13] = CreatePlayerTextDraw(playerid, 385.529327, 221.417755, "ISKLJUCENO");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][13], 0.191999, 1.110000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][13], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][13], -16776961);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][13], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][13], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][13], 2);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][13], 1);
- WE_Panel[playerid][14] = CreatePlayerTextDraw(playerid, 231.258804, 241.585571, "LD_SPAC:white");
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][14], 93.000000, 10.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][14], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][14], 268435456);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][14], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][14], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][14], 4);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][14], 0);
- PlayerTextDrawSetSelectable(playerid, WE_Panel[playerid][14], true);
- WE_Panel[playerid][15] = CreatePlayerTextDraw(playerid, 237.316940, 239.584335, "HLADAN_DAH");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][15], 0.232941, 1.197499);
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][15], 312.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][15], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][15], -1);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][15], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][15], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][15], 2);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][15], 1);
- WE_Panel[playerid][16] = CreatePlayerTextDraw(playerid, 231.358810, 261.786804, "LD_SPAC:white");
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][16], 93.000000, 10.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][16], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][16], 268435456);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][16], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][16], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][16], 4);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][16], 0);
- PlayerTextDrawSetSelectable(playerid, WE_Panel[playerid][16], true);
- WE_Panel[playerid][17] = CreatePlayerTextDraw(playerid, 237.316940, 260.485595, "SNIJEG");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][17], 0.232941, 1.197499);
- PlayerTextDrawTextSize(playerid, WE_Panel[playerid][17], 312.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][17], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][17], -1);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][17], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][17], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][17], 2);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][17], 1);
- WE_Panel[playerid][18] = CreatePlayerTextDraw(playerid, 385.529327, 240.518920, "ISKLJUCENO");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][18], 0.191999, 1.110000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][18], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][18], -16776961);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][18], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][18], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][18], 2);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][18], 1);
- WE_Panel[playerid][19] = CreatePlayerTextDraw(playerid, 385.529327, 261.020172, "ISKLJUCENO");
- PlayerTextDrawLetterSize(playerid, WE_Panel[playerid][19], 0.191999, 1.110000);
- PlayerTextDrawAlignment(playerid, WE_Panel[playerid][19], 1);
- PlayerTextDrawColor(playerid, WE_Panel[playerid][19], -16776961);
- PlayerTextDrawSetShadow(playerid, WE_Panel[playerid][19], 0);
- PlayerTextDrawBackgroundColor(playerid, WE_Panel[playerid][19], 255);
- PlayerTextDrawFont(playerid, WE_Panel[playerid][19], 2);
- PlayerTextDrawSetProportional(playerid, WE_Panel[playerid][19], 1);
- if(uKapica[playerid] == true)
- {
- PlayerTextDrawSetString(playerid, WE_Panel[playerid][10], "UKLJUCENO"); //-5963521
- PlayerTextDrawColor(playerid, WE_Panel[playerid][10], -5963521);
- }
- if(uCBreath[playerid] == true)
- {
- PlayerTextDrawSetString(playerid, WE_Panel[playerid][18], "UKLJUCENO");
- PlayerTextDrawColor(playerid, WE_Panel[playerid][18], -5963521);
- }
- if(uSneg[playerid] == true)
- {
- PlayerTextDrawSetString(playerid, WE_Panel[playerid][13], "UKLJUCENO");
- PlayerTextDrawColor(playerid, WE_Panel[playerid][13], -5963521);
- }
- if(uSUlice[playerid] == true)
- {
- PlayerTextDrawSetString(playerid, WE_Panel[playerid][19], "UKLJUCENO");
- PlayerTextDrawColor(playerid, WE_Panel[playerid][19], -5963521);
- }
- for(new i = 0; i < 20; i++)
- {
- PlayerTextDrawShow(playerid, WE_Panel[playerid][i]);
- }
- WE_PanelShowed[playerid] = true;
- SelectTextDraw(playerid, 0x003333FF);
- }
- else if(show == false){
- for(new i = 0; i < 20; i++){
- PlayerTextDrawHide(playerid, WE_Panel[playerid][i]);
- PlayerTextDrawDestroy(playerid, WE_Panel[playerid][i]);
- WE_Panel[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
- }
- WE_PanelShowed[playerid] = false;
- CancelSelectTextDraw(playerid);
- }
- }
- public OnPlayerConnect(playerid)
- {
- panel = 0;
- uKapica[playerid] = false;
- uSneg[playerid] = false;
- uSUlice[playerid] = false;
- uCBreath[playerid] = false;
- Winter_ShowSnowObjects(playerid, false);
- return 1;
- }
- CMD:goto(playerid, params)
- {
- SetPlayerPos(playerid, 1296.2291,-1421.7683,14.9596);
- return 1;
- }
- CMD:wepanel(playerid, params[])
- {
- if(panel == 0)
- {
- SendClientMessage(playerid, -1, "{2D6888}[ Mjau ] - {FFFFFF}Upalili ste panel, da ga ugasite pritisnite '{2D6888}X' {FFFFFF} ili /wepanel");
- panel = 1;
- WinterPanelTDControl(playerid, true);
- }
- else {
- SendClientMessage(playerid, -1, "{2D6888}[ Mjau ] - {FFFFFF}Ugasili ste panel");
- panel = 0;
- WinterPanelTDControl(playerid, false);
- }
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid){
- if(playertextid == WE_Panel[playerid][8])
- {
- if(uKapica[playerid] == false)
- {
- SendClientMessage(playerid, -1, "{2D6888}[ Mjau ] - {FFFFFF}Stavili ste kapicu");
- panel = 0;
- uKapica[playerid] = true;
- Winter_SetSnowCapStatus(playerid, true);
- WinterPanelTDControl(playerid, false);
- }
- else
- {
- SendClientMessage(playerid, -1, "{2D6888}[ Mjau ] - {FFFFFF}Skinuli ste kapicu");
- panel = 0;
- Winter_SetSnowCapStatus(playerid, false);
- WinterPanelTDControl(playerid, false);
- uKapica[playerid] = false;
- }
- }
- if(playertextid == WE_Panel[playerid][14])
- {
- if(uCBreath[playerid] == false)
- {
- SendClientMessage(playerid, -1, "{2D6888}[ Mjau ] - {FFFFFF}Ukljucili ste cold breath");
- panel = 0;
- uCBreath[playerid] = true;
- Winter_SetColdBreathStatus(playerid, true);
- WinterPanelTDControl(playerid, false);
- }
- else
- {
- SendClientMessage(playerid, -1, "{2D6888}[ Mjau ] - {FFFFFF}Iskljucili ste cold breath");
- panel = 0;
- uCBreath[playerid] = false;
- Winter_SetColdBreathStatus(playerid, false);
- WinterPanelTDControl(playerid, false);
- }
- }
- if(playertextid == WE_Panel[playerid][11])
- {
- if(uSneg[playerid] == false)
- {
- SendClientMessage(playerid, -1, "{2D6888}[ Mjau ] - {FFFFFF}Ukljucili ste padanje snega");
- panel = 0;
- Winter_SetSnowflakeStatus(playerid, true);
- uSneg[playerid] = true;
- WinterPanelTDControl(playerid, false);
- }
- else
- {
- SendClientMessage(playerid, -1, "{2D6888}[ Mjau ] - {FFFFFF}Iskljucili ste padanje snega");
- panel = 0;
- uSneg[playerid] = false;
- Winter_SetSnowflakeStatus(playerid, false);
- WinterPanelTDControl(playerid, false);
- }
- }
- if(playertextid == WE_Panel[playerid][16])
- {
- if(uSUlice[playerid] == false )
- {
- SendClientMessage(playerid, -1, "{2D6888}[ Mjau ] - {FFFFFF}Ukljucili ste snijeg");
- panel = 0;
- uSUlice[playerid] = true;
- Winter_ShowSnowObjects(playerid, true);
- WinterPanelTDControl(playerid, false);
- }
- else
- {
- SendClientMessage(playerid, -1, "{2D6888}[ Mjau ] - {FFFFFF}Iskljucili ste snijeg");
- panel = 0;
- uSUlice[playerid] = false;
- Winter_ShowSnowObjects(playerid, false);
- WinterPanelTDControl(playerid, false);
- }
- }
- if(playertextid == WE_Panel[playerid][3])
- {
- panel = 0;
- WinterPanelTDControl(playerid, false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment