Restriction
#1

hey guys i have this onplayerweaponshot sistem but i want if you are onduty 1 and hitman with contract not to give you that message

HTML Code:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if(VehTruckID[hitid] != -1 || VehFarmerID[hitid] != -1 || VehGarbageID[hitid] != -1 || VehForkliftID[hitid] != -1 || VehPizzaID[hitid] != -1)
	{
    	if((OnDuty[playerid] == 1 && PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 7) && strmatch(PlayerInfo[playerid][pContract], GetName(playerid)))
    	{
			SendClientMessage(playerid, COLOR_WHITE, "Este interzis sa provoci daune vehiculelor de lucru.");
			SendClientMessage(playerid, COLOR_WHITE, "Ai primit freeze 5 secunde, -20HP, +1 punct de negativitate si armele ti-au fost confiscate.");
			TogglePlayerControllableEx(playerid, 0);
			defer unfr2(playerid);
			ResetPlayerWeapons(playerid);

			new Float:health;
		    GetPlayerHealthEx(playerid, health);
			SetPlayerHealthEx(playerid, health -20.0);

			PlayerInfo[playerid][pCarJobAttacker] += 1;
			Update(playerid, pCarJobAttackerx);
		}
	}
}
but in that script is the reverse, you get the message only if you are onduty 1 and hitman with contract what can i do to not receive the message if you are onduty and hitman with contract ?
Reply


Messages In This Thread
Restriction - by StR_MaRy - 30.09.2016, 16:03
Re: Restriction - by Restriction - 30.09.2016, 16:05
Re: Restriction - by StR_MaRy - 30.09.2016, 16:08

Forum Jump:


Users browsing this thread: 2 Guest(s)