Originally Posted by [AC
Etch ]
how u define ur team (example : TEAM_ARMY) ?? |
#define TEAM_GROVE 1 // Army #define TEAM_BALLA 2 // Civilian People
Originally Posted by [GM
|
Top Of Script : new CivilianScore = 0; new ArmyScore = 0; new Text:Textdraw2;
public OnPlayerDeath(playerid,killerid,reason) { if(gTeam[playerid]==TEAM_GROVE) { CivilianScore++; }else{ ArmyScore++ } new tmpstr[50]; format(tmpstr,sizeof(tmpstr),"~r~Army: %d ~n~~n~~g~Civilian: %d",ArmyScore,CivilianScore); TextDrawSetString(Textdraw2,tmpstr); return 1; }
public OnGameModeInit() { Textdraw2 = TextDrawCreate(11.000000,273.000000,"~r~Army: 0 ~n~~n~~g~Civilian: 0"); TextDrawAlignment(Textdraw2,0); TextDrawBackgroundColor(Textdraw2,0x000000ff); TextDrawFont(Textdraw2,1); TextDrawLetterSize(Textdraw2,0.699999,1.600000); TextDrawColor(Textdraw2,0x00ff0099); TextDrawSetOutline(Textdraw2,1); TextDrawSetProportional(Textdraw2,1); TextDrawSetShadow(Textdraw2,1); return 1; }
Originally Posted by [AC
Etch ]
Код:
Top Of Script : new CivilianScore = 0; new ArmyScore = 0; new Text:Textdraw2; Код:
public OnPlayerDeath(playerid,killerid,reason) { if(gTeam[playerid]==TEAM_GROVE) { CivilianScore++; }else{ ArmyScore++ } new tmpstr[50]; format(tmpstr,sizeof(tmpstr),"~r~Army: %d ~n~~n~~g~Civilian: %d",ArmyScore,CivilianScore); TextDrawSetString(Textdraw2,tmpstr); return 1; } Код:
public OnGameModeInit() { Textdraw2 = TextDrawCreate(11.000000,273.000000,"~r~Army: 0 ~n~~n~~g~Civilian: 0"); TextDrawAlignment(Textdraw2,0); TextDrawBackgroundColor(Textdraw2,0x000000ff); TextDrawFont(Textdraw2,1); TextDrawLetterSize(Textdraw2,0.699999,1.600000); TextDrawColor(Textdraw2,0x00ff0099); TextDrawSetOutline(Textdraw2,1); TextDrawSetProportional(Textdraw2,1); TextDrawSetShadow(Textdraw2,1); return 1; } |
Originally Posted by [AC
Etch ]
+ plz post all errors and lines |