10.01.2015, 02:52
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;
}