04.08.2009, 19:36
OnPlayerDeath is not the problem but it was few days ago, I've fixed it.
Now I've checked into the Ladmin, and I removed the kill command, since there were 2 ( one in Ladmin, one in my script ).
So I removed the one in Ladmin, and I didn't die now. I hope it's not cause I restarted the server, cause I really want that gone :P
It's not forum script btw
But thanks for help. I still don't know if it's 100% fixed.
And lol, I don't think something is wrong in this code
THIS, is my OnPlayerDeath
Now I've checked into the Ladmin, and I removed the kill command, since there were 2 ( one in Ladmin, one in my script ).
So I removed the one in Ladmin, and I didn't die now. I hope it's not cause I restarted the server, cause I really want that gone :P
It's not forum script btw
But thanks for help. I still don't know if it's 100% fixed.And lol, I don't think something is wrong in this code
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
FadePlayerScreen(playerid, 0x000000AA, 6, 192);
GameTextForPlayer(playerid,"~r~You just got owned",1000,1);
SendDeathMessage(killerid, playerid, reason);
GameTextForPlayer(killerid,"~r~You just owned somebody!",1000,1);
GivePlayerMoney(killerid, 3000);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SetPlayerScore(playerid, GetPlayerScore(playerid) -1);
}

