little question
#1

Well how can i fix this because if somebody is otesting(killerid) and when he kills someone he still gets stars . i want if player has otest[killerid] == 0 they get stars and if they have otest[killerid] = 1; they wont
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid,playerid,reason);
    died[playerid] = 1;
    if(PlayerData[killerid][IsLaw] == 0)
    {
        SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(killerid)+1);
    }
    if(otest[killerid] == 0)
    {
        SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(killerid)+1);
    }
    return 1;
}
Reply
#2

Try this:
Code:
public OnPlayerDeath(playerid, killerid, reason)
{
	SendDeathMessage(killerid,playerid,reason);

	died[playerid] = 1;

	if(PlayerData[killerid][IsLaw] == 0 && otest[killerid] == 0)
	{
		SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(killerid)+1);
	}
	
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)