Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new Text:Score[MAX_PLAYERS];
- forward Scores(playerid);
- public OnFilterScriptInit()
- {
- for(new playerid = 0; playerid < MAX_PLAYERS;)
- {
- Score[playerid] = TextDrawCreate(50.000000, 322.000000, "");
- TextDrawBackgroundColor(Score[playerid], 255);
- TextDrawFont(Score[playerid],1);
- TextDrawLetterSize(Score[playerid], 0.549999, 1.300000);
- TextDrawColor(Score[playerid], -16776961);
- TextDrawSetOutline(Score[playerid], 0);
- TextDrawSetProportional(Score[playerid], 1);
- TextDrawSetShadow(Score[playerid],1);
- SetTimerEx("Scores",4000,true,"i",playerid);
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- TextDrawShowForPlayer(playerid, Score[playerid]);
- return 1;
- }
- public Scores(playerid)
- {
- new string[48];
- format(string,sizeof(string),"Score: %d",GetPlayerScore(playerid));
- TextDrawSetString(Score[playerid],string);
- }
Advertisement
Add Comment
Please, Sign In to add comment