14.04.2009, 19:28
Hey guys. I've got a problem , dunno why ^^. My callback , OnPlayerDeath , don't works anymore ... Does somebady knows why?
Here's the begin of callback
When i die , he don't show me the Death Message , the FadePlayerScreen , the GameTextForPlayer ...
Why?
* Maybe because i use PLAYER_STATE_WASTED under OnPlayerStateChange ?
Here's the begin of callback
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new name[MAX_PLAYER_NAME];
new string[256];
new playercash;
new victimteam;
new Float:px,Float:py,Float:pz;
new killerteam;
new killer[MAX_PLAYER_NAME];
IsInShamal[playerid] = 0;
victimteam = gTeam[playerid];
killerteam = gTeam[killerid];
gPlayerSpawned[playerid] = 0;
GetPlayerName(playerid, name, sizeof(name));
PlayerInfo[playerid][pLocal] = 255;
GetPlayerPos(playerid, px, py, pz);
PlayerInfo[playerid][pTrain] = 0;
SendDeathMessage(killerid, playerid, reason);
FadePlayerScreen(playerid, 0xE60000FF, 6, 192);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~r~Wasted", 2000, 2);
Why?
* Maybe because i use PLAYER_STATE_WASTED under OnPlayerStateChange ?