Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Mały dodatek do rang


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 v1saaR

    Nowy

  • Nowy

Reputacja: 0
Nowy

  • Postów:4
  • Imię:Rafał
Offline

Napisano 11.02.2017 13:18

Witam panowie,
zrobiłem mały plugin z rangami za zabójstwa, nic wielkiego.
Prosiłbym kogoś o sprawdzenie czy wszystko ok i dorzucenie jednej rzeczy: żeby na czacie obok nicku pisało jaką kto ma range, na przykład na zielono.
#include <amxmodx>
#include <amxmisc>
#include <csx>

#define PLUGIN "Rangi"
#define VERSION "1.0"
#define AUTHOR "v1saaR"

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /ranga", "ranga", 0, "- wyswietla range i statystyki")
}

public ranga(id)
{

static stats[8], body[8]
get_user_stats(id, stats, body)

new ranga[38]

if ( stats[0] >= 0 && stats[0] <= 50)
format(ranga,29,"Silver I")
else if ( stats[0] >= 51 && stats[0] <= 100)
format(ranga,29,"Silver II")
else if ( stats[0] >= 101 && stats[0] <=200)
format(ranga,29,"Silver III")
else if ( stats[0] >= 201 && stats[0] <=350)
format(ranga,29,"Silver IV")
else if ( stats[0] >= 351 && stats[0] <=500)
format(ranga,29,"Silver Elite")
else if ( stats[0] >= 501 && stats[0] <=750)
format(ranga,29,"Silver Elite Master")
else if ( stats[0] >= 751 && stats[0] <=1000)
format(ranga,29,"Gold Nova I")
else if ( stats[0] >= 1001 && stats[0] <=1500)
format(ranga,29,"Gold Nova II")
else if ( stats[0] >= 1501 && stats[0] <=2000)
format(ranga,29,"Gold Nova III")
else if ( stats[0] >= 2001 && stats[0] <=2500)
format(ranga,29,"Gold Nova Master")
else if ( stats[0] >= 2501 && stats[0] <=3000)
format(ranga,29,"Master Guardian I")
else if ( stats[0] >= 3001 && stats[0] <=4000)
format(ranga,29,"Master Guardian II")
else if ( stats[0] >= 4001 && stats[0] <=5000)
format(ranga,29,"Master Guardian Elite")
else if ( stats[0] >= 5001 && stats[0] <=7500)
format(ranga,29,"Distinguished Master Guardian")
else if ( stats[0] >= 7501 && stats[0] <=10000)
format(ranga,29,"Legendary Eagle")
else if ( stats[0] >= 10001 && stats[0] <=12500)
format(ranga,29,"Legendary Eagle Master")
else if ( stats[0] >= 12501 && stats[0] <=15000)
format(ranga,29,"Supreme Master First Class")
else if ( stats[0] >= 15001 && stats[0] <=20000)
format(ranga,29,"The Global Elite")

set_hudmessage(255, 255, 255, 0.15, 0.45)
show_hudmessage(id, "Ranga: %s^nZabojstw: %d",ranga,stats[0])
}

 


  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych