Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetTimer("Glad", 45000, true);
- //////////////////////////////////////GLAD//////////////////////////////////////
- forward Glad();
- public Glad()
- {
- foreach(Player, i)
- {
- if(IsPlayerConnected(i))
- {
- new Float:health;
- if(20 > GetPlayerHealth(i, health))
- {
- LoopingAnim(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
- GameTextForPlayer(i, "~w~Gladni ste ~p~morate da jedete!",2000,1);
- GladanLik[i] = 1;
- SetTimerEx("DoleLezi", 4000, false, "i", i);
- }
- }
- }
- }
- /////////////////////////////////////////////////////////////////////////////////
- forward DoleLezi();
- public DoleLezi()
- {
- foreach(Player, i)
- {
- if(GladanLik[i] == 1)
- {
- GladanLik[i] = 0;
- }
- }
- }
- ////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement