17.09.2011, 14:37
Hi guys.
In my automatic Wanted award there is a problem.
If a Hitman has a contract and kills someone, he gets 2 Wanteds, but I would be happy that he gets only 1 Wanted.
Can someone help me please?
Here is my code:
if(!IsACop(killerid) && GotHit[killerid] == 0)
{
WantedLevel[killerid]+=1;
SetPlayerCriminal(killerid, 255, "Mord");
}
else if(!IsACop(killerid) && GotHit[killerid] == 1)
{
SetPlayerCriminal(killerid, 255, "Mord (Auftrag)");
}
under OnPlayerDeath
Sincerely, Imagician.
In my automatic Wanted award there is a problem.
If a Hitman has a contract and kills someone, he gets 2 Wanteds, but I would be happy that he gets only 1 Wanted.
Can someone help me please?
Here is my code:
if(!IsACop(killerid) && GotHit[killerid] == 0)
{
WantedLevel[killerid]+=1;
SetPlayerCriminal(killerid, 255, "Mord");
}
else if(!IsACop(killerid) && GotHit[killerid] == 1)
{
SetPlayerCriminal(killerid, 255, "Mord (Auftrag)");
}
under OnPlayerDeath
Sincerely, Imagician.