Advertisement
BR_Gustavo

Congelar Evento

Sep 16th, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.93 KB | None | 0 0
  1. new JogadorTempoDescongelar[101]; // AVISO! Coloque isso no começo do GM
  2.  
  3.  
  4. public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
  5. {
  6.     if(EventoInfo[Evento_Tem] == 1){
  7.     if(JogadorNoEvento[damagedid] == 1){
  8.     if(EventoInfo[Evento_Aberto] == 1){
  9.     KillTimer(JogadorTempoDescongelar[playerid]);
  10.     SetPlayerArmour(damagedid,100);
  11.     SetPlayerHealth(damagedid,100);
  12.     GameTextForPlayer(playerid, "~r~Don't Attack!!", 3000, 3);
  13.     PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  14.     TogglePlayerControllable(playerid,0);
  15.     JogadorTempoDescongelar[playerid] = SetTimerEx("P_DescongelarEvento",5000,false,"i",playerid);}}}
  16.     return 1;
  17. }
  18. forward P_DescongelarEvento(playerid);
  19. public P_DescongelarEvento(playerid)
  20. {
  21.     if(EventoInfo[Evento_Tem] == 1){
  22.     if(JogadorNoEvento[playerid] == 1){
  23.     if(EventoInfo[Evento_Aberto] == 1){
  24.     PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  25.     TogglePlayerControllable(playerid,1);}}}
  26.     return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement