04.03.2013, 22:34
hi all guys i want to do a Kills,Deaths,Score and Team System and saved in the game and in scriptfiles
i do the textdraw but i need how can i saved .

Just give the kills and deaths and scores systeme
and thx
i do the textdraw but i need how can i saved .

Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:teamm;
new Text:classee;
new Text:rankk;
new Text:killss;
new Text:deathh;
new Text:scorr;
public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(900.000000, 360.000000, " ");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 900.500000, 7.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 85);
TextDrawTextSize(Textdraw0, 450.000000, 0.000000);
Textdraw1 = TextDrawCreate(950.000000, 430.000000, " ");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 100.500000, 7.000000);
TextDrawColor(Textdraw1, -1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 80);//85
TextDrawTextSize(Textdraw1, 0.0000000, 100.000000);
teamm = TextDrawCreate(7 ,427 , "Team :");
TextDrawFont(teamm , 1);
TextDrawLetterSize(teamm , 0.3, 1.4);
TextDrawColor(teamm , 0xffffffFF);
TextDrawSetOutline(teamm , false);
TextDrawSetProportional(teamm , true);
TextDrawSetShadow(teamm , 1);
TextDrawUseBox(teamm);
classee = TextDrawCreate(120 ,427 , "Class :");
TextDrawFont(classee , 1);
TextDrawLetterSize(classee , 0.3, 1.5);
TextDrawColor(classee , 0xffffffFF);
TextDrawSetOutline(classee , false);
TextDrawSetProportional(classee , true);
TextDrawSetShadow(classee , 1);
TextDrawUseBox(classee, 1);
TextDrawBoxColor(classee);
rankk = TextDrawCreate(225 ,427 , "Rank :");
TextDrawFont(rankk, 1);
TextDrawLetterSize(rankk , 0.3, 1.5);
TextDrawColor(rankk , 0xffffffFF);
TextDrawSetOutline(rankk , false);
TextDrawSetProportional(rankk , true);
TextDrawSetShadow(rankk , 1);
TextDrawUseBox(rankk, 1);
TextDrawBoxColor(rankk);
killss = TextDrawCreate(325 ,427 , "Kills :");
TextDrawFont(killss , 1);
TextDrawLetterSize(killss , 0.3, 1.5);
TextDrawColor(killss , 0xffffffFF);
TextDrawSetOutline(killss , false);
TextDrawSetProportional(killss , true);
TextDrawSetShadow(killss , 1);
TextDrawUseBox(killss, 1);
TextDrawBoxColor(killss,0);
deathh = TextDrawCreate(420 ,427 , "Deaths :");
TextDrawFont(deathh , 1);
TextDrawLetterSize(deathh , 0.3, 1.5);
TextDrawColor(deathh , 0xffffffFF);
TextDrawSetOutline(deathh , false);
TextDrawSetProportional(deathh , true);
TextDrawSetShadow(deathh , 1);
TextDrawUseBox(deathh, 1);
TextDrawBoxColor(deathh,0);
scorr = TextDrawCreate(537 ,427 , "Score :");
TextDrawFont(scorr , 1);
TextDrawLetterSize(scorr , 0.3, 1.5);
TextDrawColor(scorr , 0xffffffFF);
TextDrawSetOutline(scorr , false);
TextDrawSetProportional(scorr , true);
TextDrawSetShadow(scorr , 1);
TextDrawUseBox(scorr, 1);
TextDrawBoxColor(scorr,0);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, teamm);
TextDrawShowForPlayer(playerid, classee);
TextDrawShowForPlayer(playerid, rankk);
TextDrawShowForPlayer(playerid, killss);
TextDrawShowForPlayer(playerid, deathh);
TextDrawShowForPlayer(playerid, scorr);
return 1;
}
and thx


