09.03.2011, 17:12
hmmm.. propobly.I want to make that turf would flash with attacker color.It look like:
Код:
if (gTeam[ b ] == turfs[ i ][ TurfAttacker ]) {
new color = GetPlayerColor( killerid );
new msg1[ 256 ];
format(msg1,sizeof(msg1), "~w~We have provoked a turfwar ~w~in ~y~%s ~w~against the ~r~%s",
turfs[ i ][ turfName ], TeamInfo[ turfs[ i ][ TurfOwner ] ][ TeamName ]);
new Text:txt1 = TextDrawCreate( 200.0, 385.0, msg1 );
TextDrawFont( txt1, 0 );
TextDrawSetShadow( txt1, 0 );
TextDrawSetOutline( txt1, 1 );
TextDrawColor( txt1, 0xDFDFDFFF );
TimeTextForPlayer( b, txt1, 6000 );
GangZoneFlashForPlayer( b, turfs[ i ][turfID], color );
}
else if (gTeam[b] == turfs[ i ][ TurfOwner ]) {
new msg2[ 256 ];
format(msg2,sizeof(msg2), "~r~The ~y~%s ~r~have attacked our turf!",
TeamInfo[ turfs[ i ][ TurfAttacker ] ][ TeamName ], turfs[ i ][ turfName ]);
new Text:txt2 = TextDrawCreate( 200.0, 370.0, msg2 );
TextDrawFont( txt2, 0 );
TextDrawSetShadow( txt2, 0 );
TextDrawSetOutline( txt2, 1 );
TextDrawColor( txt2, COLOR_RED );
TimeTextForPlayer( b, txt2, 6000 );
GangZoneFlashForPlayer( b, turfs[ i ][turfID], TeamColor );
}
else { GangZoneFlashForPlayer( b, turfs[ i ][turfID], TeamColor ); }

