09.02.2011, 21:57
Aqui meu OnPlayerDeath
[pawn]public OnPlayerDeath(playerid, killerid, reason)
{
Mortes[playerid]++;
if(killerid == INVALID_PLAYER_ID)
{
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );
}
else if(Gang[playerid] == Gang[playerid])
{
SendClientMessage(killerid, COLOR_RED, "Nгo mate as pessoas do mesmo time que o seu! Caso denunciarem, vocк serб punido!");
//SetPlayerScore(killerid,GetPlayerScore(killerid) -1);
//GivePlayerMoney(killerid, -5000);
TK[killerid]++;
Mortes[playerid]++;
}
else if(Gang[playerid] != Gang[playerid])
{
SetPlayerScore(killerid,GetPlayerScore(killerid) +1);
GivePlayerMoney(killerid, 10000);
Kills[killerid]++;
Mortes[playerid]++;
}
return 1;
}
[pawn]
[pawn]public OnPlayerDeath(playerid, killerid, reason)
{
Mortes[playerid]++;
if(killerid == INVALID_PLAYER_ID)
{
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );
}
else if(Gang[playerid] == Gang[playerid])
{
SendClientMessage(killerid, COLOR_RED, "Nгo mate as pessoas do mesmo time que o seu! Caso denunciarem, vocк serб punido!");
//SetPlayerScore(killerid,GetPlayerScore(killerid) -1);
//GivePlayerMoney(killerid, -5000);
TK[killerid]++;
Mortes[playerid]++;
}
else if(Gang[playerid] != Gang[playerid])
{
SetPlayerScore(killerid,GetPlayerScore(killerid) +1);
GivePlayerMoney(killerid, 10000);
Kills[killerid]++;
Mortes[playerid]++;
}
return 1;
}
[pawn]