Bug wanted
#1

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?
Reply
#2

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
Reply
#3

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

where they go?
Reply
#5

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

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.
Reply
#7

Help me, please!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)