Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- if(hittype == BULLET_HIT_TYPE_OBJECT)
- {
- if(weaponid == 31 || weaponid == 24)
- {
- if(azisceva == 1) return 1;
- if(hitid == cadouzburator)
- {
- new dmg = 5;
- cadouviata -= dmg,cadoubani[playerid] += 250,dmgdat[playerid] += dmg,cadoulabel();
- if(cadoutimeractiv[playerid] == 0) {
- if(cadoumesaj != 0) return 1;
- cadoutimer[playerid] = SetTimerEx("updatecadoubar", 100, true, "%d", playerid);
- cadoutimeractiv[playerid] = 1;
- }
- if(cadouviata <= 0)
- {
- cadoumort = 1,cadoumsg = 0,cadoulbl = 0,cadoulevel = 0,azisceva = 1,cadoumesaj = 1;
- new Float:pos[3];
- 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!");
- foreach(new i : Player) {
- if(dmgdat[i] > 500) cadourp[i] = 1, cadoupp[i] = 1 + random(2);
- if(dmgdat[i] > 0) SCM(i,COLOR_MONEY, "(Gift Box) Pentru a colecta premiul foloseste /collectgift!");
- SCMTA(COLOR_MONEY, "(Gift Box) Pentru a vizualiza participanti foloseste /topevent!");
- KillTimer(cadoutimer[i]),PlayerTextDrawHide(i, cadouzburatorPTD[0]),DestroyPlayerProgressBar(i, cadouBAR[i]),DestroyObject(cadouzburator),DestroyObject(flamazburator);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement