17.09.2011, 14:50
Hmm, try this, but change it to your hitman variable IF you want or leave it to mine:
pawn Код:
// top of script
new IsHitman[MAX_PLAYERS];
// in your " choose skill " menu or whatever/wherever you choose hitman skill
IsHitman[playerid] = 1;
// onplayerdeath
new plwl = GetPlayerWantedLevel(killerid);
new str[128];
if(!IsACop(killerid) && GotHit[killerid] == 0 && IsHitman[killerid] == 0)
{
SetPlayerWantedLevel(killerid, plwl += 1);
SetPlayerCriminal(killerid, 255, "Mord");
format(str,128,"Wanted Level %d",plwl); SendClientMessage(killerid,COLOR,str);
}
else if(!IsACop(killerid) && GotHit[killerid] == 1 && IsHitman[killerid] == 1)
{
SetPlayerWantedLevel(killerid, plwl += 1);
SetPlayerCriminal(killerid, 255, "Mord (Auftrag)");
format(str,128,"Wanted Level %d",plwl); SendClientMessage(killerid,COLOR,str);
}