SHARE
TWEET

Untitled

a guest Sep 13th, 2017 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. forward K6huTaimer(playerid);
  2. public K6huTaimer(playerid)
  3. {
  4.  
  5.     if(PlayerInfo[playerid][pKasutajaK6htArv] > 0) //suurem kui null
  6.     {
  7.     PlayerInfo[playerid][pKasutajaK6htArv]--; //siis hakkab vähendama igakord
  8.     }
  9.  
  10.     if(PlayerInfo[playerid][pKasutajaK6htArv] == 0)
  11.     if(SisseLogitud[playerid] == 1)
  12.     {
  13.     PlayerInfo[playerid][pKasutajaK6ht] = 0;//paneb kõhu tühjaks
  14.     new string2[256], pname[MAX_PLAYER_NAME];
  15.     GetPlayerName(playerid, pname, sizeof(pname));
  16.     format(string2, sizeof(string2), "* Kõht koriseb((%s))", pname);
  17.     SendLocalMessage(playerid, LILLA, 15, string2);
  18.     SendClientMessage(playerid,PUNANE,"Hoiatus! Sul on kõht tühi, pead sööma muidu 20minuti pärast satud haiglasse.");
  19.     K6htTyhiSatubHaiglasse[playerid] = 1;
  20.     }
  21.    
  22.     if(K6htTyhiSatubHaiglasse[playerid] == 1)
  23.     {
  24.     K6htTyhiSatubHaiglasse[playerid] = 0;
  25.     new string2[256], pname[MAX_PLAYER_NAME];
  26.     GetPlayerName(playerid, pname, sizeof(pname));
  27.     format(string2, sizeof(string2), "* Kaotas teadvuse ((%s))", pname);
  28.     SendLocalMessage(playerid, LILLA, 15, string2);
  29.     format(string2, sizeof(string2), "* Kukkus pikali ((%s))", pname);
  30.     SendLocalMessage(playerid, LILLA, 15, string2);
  31.     format(string2, sizeof(string2), "* Kiirabi toimetab mehe haiglasse ((%s))", pname);
  32.     SendLocalMessage(playerid, LILLA, 15, string2);
  33.  
  34.     PlayerInfo[playerid][pKasutajaHaiglas] = 1;
  35.     PlayerInfo[playerid][pKasutajaHaiglaAeg] = 300;//Haiglaaeg kui kaua peab haiglas olema,5 minutit hetkel
  36.     K6htTyhiSatubHaiglasse[playerid] = 1;
  37.  
  38.     SetPlayerInterior(playerid,0);
  39.     SetPlayerVirtualWorld(playerid,0);
  40.     SetPlayerPos(playerid,1900.0356,-1658.0906,13.5820);
  41.  
  42.     GetPlayerName(playerid, pname, sizeof(pname));
  43.     format(string2, sizeof(string2), "* Tuleb teadvusele ((%s))", pname);
  44.     SendLocalMessage(playerid, LILLA, 15, string2);
  45.     format(string2, sizeof(string2), "* %s tõuseb voodist püsti", pname);
  46.     SendLocalMessage(playerid, LILLA, 15, string2);
  47.     }
  48.    
  49.  
  50.  
  51.  
  52. }
RAW Paste Data
Top