SA-MP Forums Archive
problem with death - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: problem with death (/showthread.php?tid=138605)



problem with death - swredder - 02.04.2010

today i found out a bug/glitch i dunno on my server, nobody can die for some reason when u typ /kill just the deathmsg shows up and the textdraws dissapear but u dont respawn for some reason

here is my onplayerdeath code i really need help, i tried evrything
Код:
public OnPlayerDeath(playerid, killerid, reason)
{


	new pName[MAX_PLAYER_NAME];
  new string [128];
  GetPlayerName(playerid, pName, sizeof(pName));

  GetPlayerName(killerid, pName, sizeof(pName));
  format(string, sizeof(string), "~y~see you in heaven~n~~r~", pName);
  GameTextForPlayer(playerid, string, 4000, 0);

	return 1;
}



Re: problem with death - ScottCFR - 02.04.2010

I've never heard of it. Maybe it's the /kill command.


Re: problem with death - swredder - 02.04.2010

/kill command:

Код:
	if (strcmp(cmdtext, "/kill", true)==0)
    {
		SetPlayerHealth(playerid,0);
    return 1;
    }
that cant be the problem normally 0_0