OnPlayerDeath has no effect in filterscript
#1

I use this little code to store kills/deaths in enums and use them onplayerdisconnect. But nothing happens. I added the sendclientmessage to be sure whether the problem is in disconnect function or in file writing. I do not receive the yes message so title says it all. Yes, in server.cfg file I have written first the fs that contains this, its the reglog fs. Any idea?
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    PlayerStats[killerid][Kills]++;
    PlayerStats[playerid][Deaths]++;
    SendClientMessage(playerid, 1, "yes");
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)