#include a_samp
new Text:pontok[MAX_PLAYERS];
new ellenortimer[MAX_PLAYERS];
forward ellenorzes(playerid);
public OnPlayerConnect(playerid)
{
new string[128];
format(string, sizeof(string),\"Pontok: %d\", GetPlayerScore(playerid));
pontok[playerid] = TextDrawCreate(498.000000, 97.000000, string);
TextDrawBackgroundColor(pontok[playerid], 255);
TextDrawFont(pontok[playerid], 2);
TextDrawLetterSize(pontok[playerid], 0.350000, 1.399999);
TextDrawColor(pontok[playerid], -1);
TextDrawSetOutline(pontok[playerid], 1);
TextDrawSetProportional(pontok[playerid], 1);
TextDrawShowForPlayer(playerid, pontok[playerid]);
ellenortimer[playerid] = SetTimerEx(\"ellenorzes\", 6000, true, \"i\", playerid);
return 1;
}
public OnPlayerDisconnect(playerid)
{
KillTimer(ellenortimer[playerid]);
TextDrawHideForPlayer(playerid, pontok[playerid]);
return 1;
}
public ellenorzes(playerid)
{
new string[128];
format(string, sizeof(string),\"Pontok: %d\", GetPlayerScore(playerid));
TextDrawSetString(pontok[playerid], string);
return 1;
}