SA-MP Forums Archive
Gametext for player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gametext for player (/showthread.php?tid=437670)



Gametext for player - Face9000 - 16.05.2013

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.


Re: Gametext for player - Facerafter - 16.05.2013

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


Re: Gametext for player - Face9000 - 16.05.2013

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.


Re : Gametext for player - MCZOFT - 16.05.2013

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);
}