[HELP] SendClientMessage with string
#3

pawn Код:
new Float:hp, Float:a;
new target = GetClosestPlayer(playerid);
if(GetDistanceBetweenPlayers(playerid,target) <= 1)
{
    if(hp < 5)
    {
        new string[100], targetname[28];
        GetPlayerName(playerid, targetname, sizeof(targetname));
        format(string,sizeof(string), "%s turn into a zombie !.", targetname);
        SendClientMessageToAll(RED,string);
    }
}
Next time use [ pawn ] [ /pawn ] tags please.

EDIT: Damnit, I was slow.
Reply


Messages In This Thread
[HELP] SendClientMessage with string - by Amine_Mejrhirrou - 18.02.2011, 22:07
Re: [HELP] SendClientMessage with string - by Pooh7 - 18.02.2011, 22:10
Re: [HELP] SendClientMessage with string - by admantis - 18.02.2011, 22:10

Forum Jump:


Users browsing this thread: 1 Guest(s)