Szerző Téma: Munka script segítség  (Megtekintve 595 alkalommal)

herban

  • Vendég
Munka script segítség
« Dátum: 2011. Április 16. - 21:09:05 »
0 Show voters
Üdv.
Segítséget szeretnék kérni.
Hiba: Mikor csatlakozok már akkor animba esik a játékos és mindig floodol, hogy \"Nincs mentõs szolgálatban.....\"
OnPlayerConnect:
 

animtimer = SetTimerEx(\"Anim\", 10000, true, \"i\", playerid);

 
funkció:
 

public Anim(playerid)
{
new Float:health;
GetPlayerHealth(playerid,health);
if(health < 30)
{
animba[playerid] = 1;
ApplyAnimation(playerid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 1, 0, 0);
GameTextForPlayer(playerid,\"Össze estél,hívj mentõt!\",5000,3);
}
else
{
if(NoMedic < 1)
{
            SendClientMessage(playerid, COLOR_GREY, \"  Nincs mentõs szolgálatban !\");
         SendClientMessage(playerid, COLOR_GREEN, \"Felsegítettek.\");
      animtimer = SetTimerEx(\"Anim\", 1000, true, \"i\", playerid);
         KillTimer(animtimer);
                 animtimer = SetTimerEx(\"Anim\", 1000, false, \"i\", playerid);
         ClearAnimations(playerid);
         SetPlayerHealth(playerid,90);
         animba[playerid] = 0;
         TogglePlayerControllable(playerid, false);
 

         return 1;
           
           
    }
}
}
 

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal