Advertisement
Guest User

dfgdggf

a guest
Aug 3rd, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.67 KB | None | 0 0
  1. hook OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  2. {  
  3. if(hittype == BULLET_HIT_TYPE_OBJECT)
  4.     {
  5.         if(weaponid == 31 || weaponid == 24)
  6.         {
  7.             if(azisceva == 1) return 1;
  8.             if(hitid == cadouzburator)
  9.             {
  10.                 new dmg = 5;
  11.                 cadouviata -= dmg,cadoubani[playerid] += 250,dmgdat[playerid] += dmg,cadoulabel();
  12.                 if(cadoutimeractiv[playerid] == 0) {
  13.                     if(cadoumesaj != 0) return 1;
  14.                     cadoutimer[playerid] = SetTimerEx("updatecadoubar", 100, true, "%d", playerid);
  15.                     cadoutimeractiv[playerid] = 1;
  16.                 }
  17.                 if(cadouviata <= 0)
  18.                 {
  19.                     cadoumort = 1,cadoumsg = 0,cadoulbl = 0,cadoulevel = 0,azisceva = 1,cadoumesaj = 1;
  20.                     new Float:pos[3];
  21.                     GetObjectPos(cadouzburator, pos[0],pos[1],pos[2]);collectobject = CreateObject(1577,  pos[0],pos[1],pos[2], 0,0,0, 100.0);UpdateDynamic3DTextLabelText(Cadolabel, COLOR_WHITE, "Pentru a colecta premiul foloseste /collectgift!");
  22.                     foreach(new i : Player) {
  23.                     if(dmgdat[i] > 500) cadourp[i] = 1, cadoupp[i] = 1 + random(2);
  24.                     if(dmgdat[i] > 0) SCM(i,COLOR_MONEY, "(Gift Box) Pentru a colecta premiul foloseste /collectgift!");
  25.                     SCMTA(COLOR_MONEY, "(Gift Box) Pentru a vizualiza participanti foloseste /topevent!");
  26.                     KillTimer(cadoutimer[i]),PlayerTextDrawHide(i, cadouzburatorPTD[0]),DestroyPlayerProgressBar(i, cadouBAR[i]),DestroyObject(cadouzburator),DestroyObject(flamazburator);
  27.                     }
  28.                 }    
  29.             }
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement