public OnPlayerUpdate(playerid){ return 1;}
public OnPlayerUpdate(playerid){ new Float:hp, hstr[256]; GetPlayerHealth(playerid,hp); format(hstr,256,\" %d\",floatround(hp)); TextDrawSetString(hpbar[playerid],hstr); TextDrawShowForPlayer(playerid,hpbar[playerid]); new Float:arm; GetPlayerArmour(playerid,arm); format(hstr,256,\" %d\",floatround(arm)); TextDrawSetString(hpgeci[playerid],hstr); TextDrawShowForPlayer(playerid,hpgeci[playerid]); new str[256];format(str,sizeof(str),\"~r~Öl~h~és~h~ek: ~y~%d ~y~Ha~h~lá~h~lok: ~r~%d\",Kills[playerid],Deaths[playerid]);TextDrawSetString(Text:Stats[playerid],str);if(Kills[playerid]<10){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Gyilkos\");}else if(Kills[playerid]<25 && Kills[playerid]>=10){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~OrvLövész\");}else if(Kills[playerid]<75 && Kills[playerid]>=25){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Mester\");}else if(Kills[playerid]<150 && Kills[playerid]>=300){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Profi Lövész\");}else if(Kills[playerid]<300 && Kills[playerid]>=450){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Mester Gyilkos\");}else if(Kills[playerid]<450 && Kills[playerid]>= 675){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Lövész\");}else if(Kills[playerid]<675 && Kills[playerid]>= 1000){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Kezdö Mester\");}else if(Kills[playerid]<1000 && Kills[playerid]>= 1500){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Profi Mester\");}else if(Kills[playerid]<1500 && Kills[playerid]>= 2250){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Kezdö Lövész\");}else if(Kills[playerid]<2250 && Kills[playerid]>= 3375){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Extrém Lövész\");}else if(Kills[playerid]<3375 && Kills[playerid]>= 5100){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~F.B.I.\");}else if(Kills[playerid]<5100 && Kills[playerid]>= 7650){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Katona\");}else if(Kills[playerid]<7650 && Kills[playerid]>= 11475){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Igaz Lövész\"); /*Scripted By Sufyan*/}else if(Kills[playerid]<11475 && Kills[playerid]>= 17500){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Kezdö Bérgyilkos\");}else if(Kills[playerid]<17500 && Kills[playerid]>= 26250){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Mesterlövész\");}else if(Kills[playerid]<26250 && Kills[playerid]>= 39375){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Kegyetlen Lövész\");}else if(Kills[playerid]<39375 && Kills[playerid]>= 60000){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Igazi Gyilkos\");}else if(Kills[playerid]<60000 && Kills[playerid]>= 100000){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Bérgyilkos\");}else if(Kills[playerid]> 100000){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Gyilkológép\");} new drunk2 = GetPlayerDrunkLevel(playerid); if(drunk2 < 100) { SetPlayerDrunkLevel(playerid,2000); } else { if(DLlast[playerid] != drunk2) { new fps = DLlast[playerid] - drunk2; if((fps > 0) && (fps < 200)) FPS2[playerid] = fps; DLlast[playerid] = drunk2; } } } forward FPSUP(); public FPSUP() { new strih[800]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { format(strih,sizeof(strih),\"%d\",FPS2-1); TextDrawSetString(FPS,strih); } continue; } }
public OnPlayerUpdate(playerid){new Float:hp, hstr[256]; GetPlayerHealth(playerid,hp); format(hstr,256,\" %d\",floatround(hp)); TextDrawSetString(hpbar[playerid],hstr); TextDrawShowForPlayer(playerid,hpbar[playerid]); new Float:arm; GetPlayerArmour(playerid,arm); format(hstr,256,\" %d\",floatround(arm)); TextDrawSetString(hpgeci[playerid],hstr); TextDrawShowForPlayer(playerid,hpgeci[playerid]); new str[256];format(str,sizeof(str),\"~r~Öl~h~és~h~ek: ~y~%d ~y~Ha~h~lá~h~lok: ~r~%d\",Kills[playerid],Deaths[playerid]);TextDrawSetString(Text:Stats[playerid],str);if(Kills[playerid]<10){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Gyilkos\");}else if(Kills[playerid]<25 && Kills[playerid]>=10){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~OrvLövész\");}else if(Kills[playerid]<75 && Kills[playerid]>=25){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Mester\");}else if(Kills[playerid]<150 && Kills[playerid]>=300){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Profi Lövész\");}else if(Kills[playerid]<300 && Kills[playerid]>=450){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Mester Gyilkos\");}else if(Kills[playerid]<450 && Kills[playerid]>= 675){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Lövész\");}else if(Kills[playerid]<675 && Kills[playerid]>= 1000){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Kezdö Mester\");}else if(Kills[playerid]<1000 && Kills[playerid]>= 1500){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Profi Mester\");}else if(Kills[playerid]<1500 && Kills[playerid]>= 2250){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Kezdö Lövész\");}else if(Kills[playerid]<2250 && Kills[playerid]>= 3375){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Extrém Lövész\");}else if(Kills[playerid]<3375 && Kills[playerid]>= 5100){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~F.B.I.\");}else if(Kills[playerid]<5100 && Kills[playerid]>= 7650){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Katona\");}else if(Kills[playerid]<7650 && Kills[playerid]>= 11475){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Igaz Lövész\"); /*Scripted By Sufyan*/}else if(Kills[playerid]<11475 && Kills[playerid]>= 17500){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Kezdö Bérgyilkos\");}else if(Kills[playerid]<17500 && Kills[playerid]>= 26250){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Mesterlövész\");}else if(Kills[playerid]<26250 && Kills[playerid]>= 39375){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Kegyetlen Lövész\");}else if(Kills[playerid]<39375 && Kills[playerid]>= 60000){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Igazi Gyilkos\");}else if(Kills[playerid]<60000 && Kills[playerid]>= 100000){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Bérgyilkos\");}else if(Kills[playerid]> 100000){TextDrawSetString(Text:R_1[playerid],\"~b~R~h~A~h~N~h~G: ~r~Gyilkológép\");} new drunk2 = GetPlayerDrunkLevel(playerid);if(drunk2 < 100){ SetPlayerDrunkLevel(playerid,2000);}else{ if(DLlast[playerid] != drunk2) { new fps = DLlast[playerid] - drunk2; if((fps > 0) && (fps < 200)) { FPS2[playerid] = fps; DLlast[playerid] = drunk2; }}}return 1;}