not working :D
#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

PHP код:
if(!InDayByDayLight[playerid] && PlayerInfo[killerid][pJailed] != 1)
{
    if(!
IsACop(killerid))
    {
        if(
factionid[killerid] != factionid[playerid] && !IsAGangMember(playerid))
        {
            
AcusedID[playerid] = killerid;
            
strmid(Crime[playerid], "Murderer"050);
            
format(gStringsizeof(gString),"You have been killed by %s, you can report the crime in 30 seconds [/call 112]."GetName(killerid));
            
SendClientMessage(playerid0xAAC4E0FFgString);
            
defer ResetCrime(playerid);
        }
    }

Try that out?
Reply
#3

nope is the same i am getting /call 112
Reply


Forum Jump:


Users browsing this thread: