called back
#1

hey guys i have an event sistem created by me but i have a simple question , if someone kills you , you get a message like /call 112 cause someone killed you ... but i want not to give you that message if you are in that event

Код HTML:
if(!IsACop(killerid) && OnDuty[playerid] == 0)
		{
			if(factionid[killerid] != factionid[playerid] && PlayerInfo[killerid][pJailed] != 1 && !IsAGangMember(playerid))
			{
				AcusedID[playerid] = killerid;
				strmid(Crime[playerid], "Murderer", 0, 50);
				format(gString, sizeof(gString),"You have been killed by %s, you can report the crime in 30 seconds [/call 112].", GetName(killerid));
				SendClientMessage(playerid, 0xAAC4E0FF, gString);
				defer ResetCrime(playerid);
			}
		}
InDayByDayLight is the variable that is saying about someone if is or not in that event i tryed to add it at the first line from that script something like InDayByDayLight[playerid == 0 and 1 and didn't work
Reply
#2

Код:
if(!IsACop(killerid) && OnDuty[playerid] == 0)
		{
			if(factionid[killerid] != factionid[playerid] && PlayerInfo[killerid][pJailed] != 1 && !IsAGangMember(playerid))
			{
				if(!InDayByDayLight)
				{	
					AcusedID[playerid] = killerid;
					strmid(Crime[playerid], "Murderer", 0, 50);
					format(gString, sizeof(gString),"You have been killed by %s, you can report the crime in 30 seconds [/call 112].", GetName(killerid));
					SendClientMessage(playerid, 0xAAC4E0FF, gString);
					defer ResetCrime(playerid);
				}
			}
		}
I assume what you're asking is if they are in the event you do not want them to receive that message saying they report this crime. I hope this helps you.

Also; If you were also asking how to create the boolean for that you would add
Код:
new bool:InDayByDayLight[MAX_PLAYERS];
at the top of your script or wherever you organize your stuff.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)