Gametext for player
#1

I added a small protection about team shooting, everything works, the issuerid lose -1 hp at each shoot at his team mate but the gametext doesn't show:

pawn Код:
if(gTeam[issuerid] == gTeam[playerid])
    {
    new Float:hp;
    GetPlayerHealth(issuerid, hp);
    GameTextForPlayer(issuerid, "~w~Watch your fire, you are shooting at a ~r~team mate!", 5000, 4);
    SetPlayerHealth(issuerid, hp -1);
    }
Added on OnPlayerTakeDamage.
Reply
#2

Maybe it's to long
Try to shorten it? (IDK Im just guessing.)
Reply
#3

Quote:
Originally Posted by Facerafter
Посмотреть сообщение
Maybe it's to long
Try to shorten it? (IDK Im just guessing.)
I don't think. I use gametext's more larger than this and they works.
Reply
#4

Try

if(gTeam[issuerid] == gTeam[playerid])
{
new Float:hp;
GetPlayerHealth(issuerid, hp);
GameTextForPlayer(issuerid, "~w~Watch your fire, you are shooting at a ~r~team mate!", 3500, 4);
SetPlayerHealth(issuerid, hp -1);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)