SendDeathMessage
#1

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
Код:
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;
}
**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.**
Reply
#2

check if the status give are valid !
Reply
#3

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
check if the status give are valid !
whatdya mean by that? :P all of the other things under OnPlayerDeath are working.
Reply
#4

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    printf("playerid: %d, killerid: %d, reason: %d",playerid, killerid, reason);
    SendDeathMessage(killerid, playerid, reason);
//so on
}
See what it says
Reply
#5

playerid: 0, killerid: 1, reason: 49

Indeed, it's valid. (In this case I was ran by a car)
Any other ideas mate? I'm really confused... There's no reason for it not to work.

EDIT: Just discovered it might be client-sided. Lost kill feed in other servers. Tried re-installing samp, didn't work. Hopefully I'll find my game pack to re-install GTA. Sorry for bothering you, and thanks for trying

UPDATE: re-installing GTA did not work. Neither deleting user data.

UPDATE2: Now that's interesting. I never clean my download folder, and found an old installation of R1. It works with that...
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)