script help
#4

Quote:
Originally Posted by GeneralAref
Посмотреть сообщение
and how to make if enemy player shoot him with sniper send massage sniper!!.
PHP код:
public OnPlayerGiveDamage(playeriddamagedidFloatamountweaponidbodypart) {
    if(
GetPlayerTeam(playerid) == GetPlayerTeam(damagedid)) {
        
SendClientMessage(playerid,COLOR_RED,"Hold your fire");
    }
    if(
GetPlayerWeapon(playerid) == 34) {
        
SendClientMessage(damagedid,COLOR_RED,"You have been shot by a sniper");
    }
    return 
true;

Reply


Messages In This Thread
script help - by GeneralAref - 18.12.2015, 08:00
Re: script help - by TwinkiDaBoss - 18.12.2015, 08:03
Re: script help - by GeneralAref - 18.12.2015, 08:12
Re: script help - by TwinkiDaBoss - 18.12.2015, 08:15
Re: script help - by GeneralAref - 18.12.2015, 08:20

Forum Jump:


Users browsing this thread: 2 Guest(s)