new deaths[MAX_PLAYERS];new kills[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason){deaths[playerid]++;kills[killerid]++;
new tstring[256];format(tstring,256,\"Olesek szama: %d - Halalok szama: %d\",kills[playerid],deaths[playerid]);TextDrawSetString(kd,tstring);
public PontFrissito(){
public PontFrissito(){new tstring[256];format(tstring,256,\"Olesek szama: %d - Halalok szama: %d\",kills,deaths);TextDrawSetString(kd,tstring);}
public PontFrissito(playerid){ new tstring[256];format(tstring,256,\"Olesek szama: %d - Halalok szama: %d\",kills[playerid],deaths[playerid]);TextDrawSetString(kd,tstring);}
new Text:textdrawnév[MAX_PLAYERS];
for(new i; i < GetMaxPlayers(); i++){textdrawnév = TextDrawCreate(koordináta1, koordináta2, \" \"); //fontos, hogy a szöveg így legyen!SetTimerEx(\"PontFrissito\", 1000, true, \"i\", i);TextDrawFont(textdrawnév, 3);TextDrawColor(textdrawnév, 0xFFFFFFFF);//stb.}
forward PontFrissito(playerid);public PontFrissito(playerid){ new tstring[256];format(tstring,256,\"Olesek szama: %d - Halalok szama: %d\",kills[playerid],deaths[playerid]);TextDrawSetString(textdrawnév,tstring);}
new Text:kd[MAX_PLAYERS];
for( new i = 0; i < MAX_PLAYERS; i ++ ){kd = TextDrawCreate(20.000000, 321.000000, \"\");TextDrawBackgroundColor(kd, 255);TextDrawFont(kd, 1);TextDrawLetterSize(kd, 0.500000, 1.000000);TextDrawColor(kd, -1);TextDrawSetOutline(kd, 0);TextDrawSetProportional(kd, 1);TextDrawSetShadow(kd, 1);
TextDrawShowForPlayer(playerid,Text:kd[playerid]);
new tstring[256];format(tstring,256,\"Olesek szama: %d - Halalok szama: %d\",kills[playerid],deaths[playerid]);TextDrawSetString(kd[playerid],tstring);
TextDrawShowForPlayer(playerid, kd[playerid]);
new tdstring[5];new Float:arany = kills[playerid]/deaths[playerid];format( tdstring, sizeof( tdstring ),\"Olesek szama: %d - Halalok szama: %d - Arany: %f\",kills[playerid],deaths[playerid],arany);TextDrawSetString(kd[playerid],tdstring);
new Float:arany=floatdiv(kills[playerid],deaths[playerid]);
%.2f