[Ajuda] if dano mesmo time
#3

Quote:
Originally Posted by n0minal
Посмотреть сообщение
OnPlayerWeaponShoot (usa o hitid)
Nгo ficou funcionando direito nгo, quando um COP atira nada acontece, n perde vida, n faz anim, nada

pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if(playerid != INVALID_PLAYER_ID && hittype != INVALID_PLAYER_ID) {
        if(!IsACop(playerid))
        {
            if(wanted[playerid] < 3)
            {
                wanted[playerid]+=1;
            }
        }
        if(GetPlayerTeam(playerid) == GetPlayerTeam(hittype))
        {
            if(GetPlayerTeam(playerid == 255)) return 0;
            new string[50];
            new Float:slx, Float:sly, Float:slz;
            GetPlayerPos(hittype, slx, sly, slz);
            SetPlayerPos(hittype, slx, sly, slz+2);
            PlayerPlaySound(hittype, 1130, slx, sly, slz+2);
            format(string, sizeof(string), "~r~DONT ATTACK ~b~TEAM MATES! ~w~OR INNOCENTS!");
            GameTextForPlayer(hittype, string, 2000, 3);
        }
    }
    return 1;
}
Reply


Messages In This Thread
if dano mesmo time - by maikons - 01.01.2015, 18:50
Re: if dano mesmo time - by n0minal - 01.01.2015, 18:56
Re: if dano mesmo time - by maikons - 10.01.2015, 02:52
Re: if dano mesmo time - by Detoria - 10.01.2015, 03:25
Re: if dano mesmo time - by n0minal - 10.01.2015, 03:32

Forum Jump:


Users browsing this thread: 1 Guest(s)