04.06.2013, 20:50
All of the OnPlayerDeath works, except the SendDeathMessage. It doesn't show the kill log at all. Since in other servers I see the kill log, I don't believe it's client side.
Therefore, I officially claim it's broken :P
**FYI, to avoid over-creative thinking, FS were disabled (with or without, still didn't work), game mode is a modified script of Grand Larceny (maybe it's somewhere in Grand Larceny's script?), and no, dinosaurs did not attack the planet in the past day or two.**
Therefore, I officially claim it's broken :P
Код:
public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); SetPlayerColor(playerid, Col_Gray); gPlayerHasCitySelected[playerid] = 0; SetPlayerWantedLevel(playerid, 0); pInfo[playerid][alive]=false; pInfo[playerid][JailTime]=0; DestroyVehicle(pInfo[playerid][Spawnedv]); pInfo[playerid][Spawnedv] = 0; pInfo[playerid][Deaths]++;//Will give 1 death each time they die and it will be saved inside of his/her account if(killerid != INVALID_PLAYER_ID) { pInfo[killerid][Kills]++;//Will give 1 kill to killer and it will be saved inside of his/her account } if(pInfo[killerid][Class] != cCop) CommitedCrime(killerid, 10); return 1; }