GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Szkript kérések => A témát indította: Dj.BL3ND - 2012. március 13. - 11:42:01

Cím: Pont (textdraw)
Írta: Dj.BL3ND - 2012. március 13. - 11:42:01
hello all
egy oylan TD-t szeretnék kérni ami a Pénz alatt kiirja h
Pontok: amenyi pontja van
elõre is köszi
Cím: Pont (textdraw)
Írta: CANNONN - 2012. március 13. - 12:00:49

#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;
}
Cím: Pont (textdraw)
Írta: dexi - 2012. március 13. - 12:04:51
http://solidfiles.com/d/72855f4968/
Láttam hogy megelõztél, de azért kirakom  ::|
Cím: Pont (textdraw)
Írta: Dj.BL3ND - 2012. március 13. - 12:07:40
köszi minda 2-õtöknek  témát zárom