SA-MP Forums Archive
Bug wanted - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bug wanted (/showthread.php?tid=492924)



Bug wanted - Madalyinn - 06.02.2014

I have a problem wanted, when you kill a civilian i do not give the wanted, unless you kill a hitman. How can I fix?


Re: Bug wanted - Jstylezzz - 06.02.2014

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SetPlayerWantedLevel(killerid,random(5)); //Replace 'random(5)' with the level you want to give the player
}
Simple as that.

EDIT: Btw, some links for reference



Re: Bug wanted - Vanter - 06.02.2014

pawn Код:
//under onplayerdeath
if(gTeam[playerid] == TEAM_CIVILIAN)
{
   SetPlayerWantedLevel(killerid, LEVEL);
}



Re: Bug wanted - Madalyinn - 06.02.2014

where they go?


Re: Bug wanted - DerickClark - 06.02.2014

Quote:
Originally Posted by Madalyinn
Посмотреть сообщение
where they go?
OnPlayerDeath


Re: Bug wanted - Madalyinn - 06.02.2014

pawn Код:
C:\Documents and Settings\Madalin\Desktop\serversamp\gamemodes\Godfather.pwn(7299) : error 017: undefined symbol "TEAM_CIVILIAN"
C:\Documents and Settings\Madalin\Desktop\serversamp\gamemodes\Godfather.pwn(7301) : error 017: undefined symbol "LEVEL"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.



Re: Bug wanted - Madalyinn - 06.02.2014

Help me, please!