public OnPlayerDeath(playerid, killerid, reason)
{
if (killerid != INVALID_PLAYER_ID)
{
JugadorInfo[playerid][jMuertes]++;
JugadorInfo[killerid][jAsesinatos]++;
GivePlayerMoney(playerid, -100);
GivePlayerMoney(killerid, 100);
SetPlayerScore(killerid, GetPlayerScore(playerid) + 25);
SendClientMessage(playerid,-1,"has muerto gil");
if(RecibioTextoDesbaneciendo[killerid] == 0)
{
TextDrawHideForPlayer(killerid, Textdraw1);
RecibioTextoDesbaneciendo[killerid] = 1;
TextDrawColor(Textdraw1, 0x00FF00FF);
TextDrawSetString(Textdraw1, "+25 XP +100 C");
TextDrawShowForPlayer(killerid, Textdraw1);
TimerScoreAsesinato[killerid] = SetTimerEx("TextoDesbaneciendo",125,true,"i",killerid);
}
}
return 1;
}
if (killerid != INVALID_PLAYER_ID) Si te suicidas no va hacer nada, pues eso indica quй el asesino debe existir... por lo cual alguien te tiene que matar!
|
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid,-1,"has muerto gil");
if (killerid != INVALID_PLAYER_ID)
{
JugadorInfo[playerid][jMuertes]++;
JugadorInfo[killerid][jAsesinatos]++;
GivePlayerMoney(playerid, -100);
GivePlayerMoney(killerid, 100);
SetPlayerScore(killerid, GetPlayerScore(playerid) + 25);
SendClientMessage(playerid,-1,"has muerto gil");
if(RecibioTextoDesbaneciendo[killerid] == 0)
{
TextDrawHideForPlayer(killerid, Textdraw1);
RecibioTextoDesbaneciendo[killerid] = 1;
TextDrawColor(Textdraw1, 0x00FF00FF);
TextDrawSetString(Textdraw1, "+25 XP +100 C");
TextDrawShowForPlayer(killerid, Textdraw1);
TimerScoreAsesinato[killerid] = SetTimerEx("TextoDesbaneciendo",125,true,"i",killerid);
}
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid,-1,"has muerto gil");
if (playerid != INVALID_PLAYER_ID)
{
JugadorInfo[playerid][jMuertes]++;
JugadorInfo[killerid][jAsesinatos]++;
GivePlayerMoney(playerid, -100);
GivePlayerMoney(killerid, 100);
SetPlayerScore(killerid, GetPlayerScore(playerid) + 25);
SendClientMessage(playerid,-1,"has muerto gil");
if(RecibioTextoDesbaneciendo[killerid] == 0)
{
TextDrawHideForPlayer(killerid, Textdraw1);
RecibioTextoDesbaneciendo[killerid] = 1;
TextDrawColor(Textdraw1, 0x00FF00FF);
TextDrawSetString(Textdraw1, "+25 XP +100 C");
TextDrawShowForPlayer(killerid, Textdraw1);
TimerScoreAsesinato[killerid] = SetTimerEx("TextoDesbaneciendo",125,true,"i",killerid);
}
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid,-1,"has muerto gil");
if (killerid == INVALID_PLAYER_ID)
{
JugadorInfo[playerid][jMuertes]++;
JugadorInfo[killerid][jAsesinatos]++;
GivePlayerMoney(playerid, -100);
GivePlayerMoney(killerid, 100);
SetPlayerScore(killerid, GetPlayerScore(playerid) + 25);
SendClientMessage(playerid,-1,"has muerto gil");
if(RecibioTextoDesbaneciendo[killerid] == 0)
{
TextDrawHideForPlayer(killerid, Textdraw1);
RecibioTextoDesbaneciendo[killerid] = 1;
TextDrawColor(Textdraw1, 0x00FF00FF);
TextDrawSetString(Textdraw1, "+25 XP +100 C");
TextDrawShowForPlayer(killerid, Textdraw1);
TimerScoreAsesinato[killerid] = SetTimerEx("TextoDesbaneciendo",125,true,"i",killerid);
}
}
return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerDeath_Es
pawn Код:
|
pawn Код:
|
public OnPlayerDeath(playerid, killerid, reason)
{
if (killerid != INVALID_PLAYER_ID)
{
JugadorInfo[playerid][jMuertes]++;
JugadorInfo[killerid][jAsesinatos]++;
GivePlayerMoney(playerid, -100);
GivePlayerMoney(killerid, 100);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 25);
if(RecibioTextoDesbaneciendo[killerid] == 0)
{
TextDrawHideForPlayer(killerid, Textdraw1);
RecibioTextoDesbaneciendo[killerid] = 1;
TextDrawColor(Textdraw1, 0x00FF00FF);
TextDrawSetString(Textdraw1, "+25 XP +100 C");
TextDrawShowForPlayer(killerid, Textdraw1);
TimerScoreAsesinato[killerid] = SetTimerEx("TextoDesbaneciendo",125,true,"i",killerid);
}
}
else
SendClientMessage(playerid,-1,"has muerto solo, gil!");
return 1;
}