Guest User

Untitled

a guest
Jan 8th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.27 KB | None | 0 0
  1. UzrakintosM[ playerid ] = 0;
  2.     AtrakintosM[ playerid ] = 0;
  3. ///// del returno neveikia reikia kad jis butu bet kai yra erorus meto 
  4.         Box[playerid] = TextDrawCreate(622.000000, 79.000000, "   ");
  5.         TextDrawBackgroundColor(Box[playerid], 255);
  6.         TextDrawFont(Box[playerid], 1);
  7.         TextDrawLetterSize(Box[playerid], 0.500000, 1.000000);
  8.         TextDrawColor(Box[playerid], -1);
  9.         TextDrawSetOutline(Box[playerid], 0);
  10.         TextDrawSetProportional(Box[playerid], 1);
  11.         TextDrawSetShadow(Box[playerid], 1);
  12.         TextDrawUseBox(Box[playerid], 1);
  13.         TextDrawBoxColor(Box[playerid], 0x000035FF);
  14.         TextDrawTextSize(Box[playerid], 483.000000, 49.000000);
  15.         Ft[playerid] = TextDrawCreate(490.000000, 77.000000, "00000000Ft"); //a forint mindenhol legelol volt
  16.         TextDrawBackgroundColor(Ft[playerid], 0xF5F51FFF);
  17.         TextDrawFont(Ft[playerid], 1);
  18.         TextDrawLetterSize(Ft[playerid], 0.539999, 2.299999);
  19.         TextDrawColor(Ft[playerid], 0xCACA09FF);
  20.         TextDrawSetOutline(Ft[playerid], 1);
  21.         TextDrawSetProportional(Ft[playerid], 1);
  22.         SetTimerEx("CheckMoney", 2000, true, "i", playerid);
  23.         return 1;
  24.         }
  25. ////////////////////////////////////////////////////////////////
  26.     if(!playerDB[playerid][uniform])
  27.     {
  28.     playerDB[playerid][drabuziai] = GetPlayerSkin(playerid);
  29.     }
  30.         dinfo[playerid] = CreatePlayerTextDraw(playerid, 489.500000, 193.375000, "~p~Pradirbai: ~r~8525 min~n~~p~Uzdirbai: ~r~155000 €");
  31.         PlayerTextDrawLetterSize(playerid, dinfo[playerid], 0.294999, 1.228124);
  32.         PlayerTextDrawAlignment(playerid, dinfo[playerid], 1);
  33.         PlayerTextDrawColor(playerid, dinfo[playerid], -5963521);
  34.         PlayerTextDrawSetOutline(playerid, dinfo[playerid], 0);
  35.         PlayerTextDrawFont(playerid, dinfo[playerid], 1);
  36.         PlayerTextDrawSetProportional(playerid, dinfo[playerid], 1);
  37.         return 1;
  38. }
  39. public OnPlayerDisconnect(playerid, reason)
  40. {
  41.     if(playerDB[playerid][zaidzia]==3)
  42.     {
  43.     SaugomZaideja(playerid, true);
  44.     KillTimer(zaidimast[playerid]);
  45.     KillTimer(SpeedTime[playerid]);
  46.     }
  47.     //TextDrawHideForPlayer(playerid, laikas); // rodom textdrawà :)
  48.     PlayerKliutis[playerid] = 0;
  49.     Delete3DTextLabel(Kliutis3D[playerid]);
  50.     DestroyDynamicObject(Kliutis[playerid]);
  51.     //
  52.     KillTimer(zaidimast[playerid]);
  53.     KillTimer(SpeedTime[playerid]);
  54. }
  55. // va sitoi vietoi kai isemu return veikia kai padedu eroras man reikia kad jis butu nes be jo neveiks ciuju
  56.     TextDrawHideForPlayer(playerid, Ft[playerid]);
  57.     TextDrawHideForPlayer(playerid, Box[playerid]);
  58.     return 1;
  59.     }
  60. ////////////////////////////////////////////////////
  61.     PlayerTextDrawDestroy(playerid, dinfo[playerid]);
  62.     //
  63.     if(!playerDB[playerid][uniform])
  64.     {
  65.     playerDB[playerid][drabuziai] = GetPlayerSkin(playerid);
  66.     }
  67.     if(playerDB[playerid][uniform])
  68.     {
  69.     playerDB[playerid][uniforma] = GetPlayerSkin(playerid);
  70.     }
  71.     KillTimer(MuteTime[playerid]);
  72.    
  73.     if( GetPVarInt( playerid, "Skambutis" ) != -1 )
  74.     {
  75.         if( GetPVarInt( GetPVarInt( playerid,"Skambutis"),"Skambutis") == playerid )
  76.         {
  77.             SetPVarInt( GetPVarInt( playerid, "Skambutis" ), "Skambutis" ,-1 );
  78.             InfoMsg( GetPVarInt( playerid, "Skambutis" )," {FF0000}* Ryðys Nûtrûko, atstatymas neámanomas..." );
  79.     }
  80.     }
  81.     return 1;
  82. }
Advertisement
Add Comment
Please, Sign In to add comment