Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach(new i : Player)
- {
- if(pEventInfo[i][E_IN] && eventInfo[E_ID] == EVENT_TOWER)
- {
- if(pEventInfo[playerid][E_Team] != ObjDynaTower[tTeam]) //ObjDynaTower = Équipe 2
- {
- if(hittype == BULLET_HIT_TYPE_OBJECT)
- {
- static
- str[50];
- if(!IsValidObject(hitid))
- return true;
- if(ObjDynaTower[tDyna] == false)
- return true;
- ObjDynaTower[tVie] -= random(10) + 1;
- format(str, sizeof(str), "{0059FF}TOWER\n{33CCFF}%d / 1000", ObjDynaTower[tVie]);
- Update3DTextLabelText(ObjDynaTower[TextTower], -1, str);
- if(ObjDynaTower[tVie] <= 0)
- {
- SendClientMessageToLang(L_FRENCH, COLOR_BLANC, ""COLOR_BLEU_2"[TOWER] "COLOR_BLANC_2"La Team Bleu a remporté l'event, ils gagnent "COLOR_VERT_2"2000 $");
- SendClientMessageToLang(L_ENGLISH, COLOR_BLANC, ""COLOR_BLEU_2"[TOWER] "COLOR_BLANC_2"Team Blue won the event, they win "COLOR_VERT_2"2000 $");
- TeleportToSafe(playerid);
- forceSelection(playerid);
- if(pEventInfo[i][E_Team] == TEAM_1)
- {
- GiveMoney(i, 2000);
- }
- DestroyObject(ObjDynaTower[tId]);
- Delete3DTextLabel(ObjDynaTower[TextTower]);
- eventInfo[E_ON] = false;
- eventInfo[E_ID] = EVENT_NONE;
- eventInfo[E_Map] = 0;
- eventInfo[E_EndTime] = 0;
- eventInfo[E_Zombies] = 0;
- eventInfo[E_Survivs] = 0;
- new money_;
- money_ = floatround(pEventInfo[i][E_TotalDamage] / 2);
- IN_FR(i) FM(i, COLOR_BLANC, ""COLOR_VERT_2"Vous remportez %d $ pour avoir fait %d damages en event", money_, pEventInfo[i][E_TotalDamage]);
- IN_EN(i) FM(i, COLOR_BLANC, ""COLOR_VERT_2"You win %d $ for doing %d damages in event", money_, pEventInfo[i][E_TotalDamage]);
- GiveMoney(i, money_);
- pEventInfo[i][E_TotalDamage] = 0;
- pEventInfo[i][E_Damage] = 0;
- TeleportToSafe(i);
- PlayerTextDrawHide(i, td_box[i]);
- ShowTableauEvent();
- }
- }
- }
- if(pEventInfo[playerid][E_Team] != ObjDynaTowers[tTeam]) //ObjDynaTowers = Équipe 2
- {
- if(hittype == BULLET_HIT_TYPE_OBJECT)
- {
- static
- str[50];
- if(!IsValidObject(hitid))
- return true;
- if(ObjDynaTowers[tDyna] == false)
- return true;
- ObjDynaTowers[tVie] -= random(10) + 1;
- format(str, sizeof(str), "{0059FF}TOWER\n{33CCFF}%d / 1000", ObjDynaTowers[tVie]);
- Update3DTextLabelText(ObjDynaTowers[TextTower], -1, str);
- if(ObjDynaTowers[tVie] <= 0)
- {
- SendClientMessageToLang(L_FRENCH, COLOR_BLANC, ""COLOR_BLEU_2"[TOWER] "COLOR_BLANC_2"La Team Verte a remporté l'event, ils gagnent "COLOR_VERT_2"2000 $");
- SendClientMessageToLang(L_ENGLISH, COLOR_BLANC, ""COLOR_BLEU_2"[TOWER] "COLOR_BLANC_2"Team Green won the event, they win "COLOR_VERT_2"2000 $");
- TeleportToSafe(playerid);
- forceSelection(playerid);
- if(pEventInfo[i][E_Team] == TEAM_2)
- {
- GiveMoney(i, 2000);
- }
- DestroyObject(ObjDynaTowers[tId]);
- Delete3DTextLabel(ObjDynaTowers[TextTower]);
- eventInfo[E_ON] = false;
- eventInfo[E_ID] = EVENT_NONE;
- eventInfo[E_Map] = 0;
- eventInfo[E_EndTime] = 0;
- eventInfo[E_Zombies] = 0;
- eventInfo[E_Survivs] = 0;
- new money_;
- money_ = floatround(pEventInfo[i][E_TotalDamage] / 2);
- IN_FR(i) FM(i, COLOR_BLANC, ""COLOR_VERT_2"Vous remportez %d $ pour avoir fait %d damages en event", money_, pEventInfo[i][E_TotalDamage]);
- IN_EN(i) FM(i, COLOR_BLANC, ""COLOR_VERT_2"You win %d $ for doing %d damages in event", money_, pEventInfo[i][E_TotalDamage]);
- GiveMoney(i, money_);
- pEventInfo[i][E_TotalDamage] = 0;
- pEventInfo[i][E_Damage] = 0;
- TeleportToSafe(i);
- PlayerTextDrawHide(i, td_box[i]);
- ShowTableauEvent();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement