%s Mini Help Nedded
#1

pawn Код:
//Baton Detect
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID)
    {
        if(GetPlayerWeapon(issuerid) == 3)
        {
           new string[50],Attacker[MAX_PLAYERS];
           GetPlayerName(issuerid, Attacker, sizeof (Attacker));
           format(string, sizeof(string), "(INFO) You have been stunned by Officer %s.", Attacker);
           SendClientMessage(playerid, COLOR_GOLD, string);
           SetPlayerColor(playerid, COLOR_LIGHTGREEN);
           SetTimerEx("timer_stunned",20000,false,"i",playerid);
           TogglePlayerControllable(playerid, 0);
        }
    }
    return 1;
}
I want send a message to the "attacker" too with You have stunned %S (<- Issued player name)
Reply


Messages In This Thread
%s Mini Help Nedded - by Gooday - 15.03.2012, 12:54
Re: %s Mini Help Nedded - by T0pAz - 15.03.2012, 12:58
AW: %s Mini Help Nedded - by BigETI - 15.03.2012, 13:00
Re: %s Mini Help Nedded - by Gooday - 15.03.2012, 13:20
Re: %s Mini Help Nedded - by T0pAz - 15.03.2012, 13:27
Re: %s Mini Help Nedded - by Issam - 15.03.2012, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)