06.08.2009, 07:14
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
} else {
SendDeathMessage(killerid,playerid,reason);
}
if(killerid == TEAM_Cop)
{
if(playerid == TEAM_Anarchist)
{
SendClientMessage(killerid, COLOR_YELLOW, "[ ! ] You gain +2 PCash for killing a criminal ");
SendClientMessage(killerid, COLOR_YELLOW, "[ ! ] PCash info : +2 ");
SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] PCash info : -1");
GivePlayerPCash(playerid, 2);
GivePlayerPCash(playerid, -1);
}
return 1;
}
if(killerid == TEAM_Anarchist)
{
if(playerid == TEAM_Cop)
{
SendClientMessage(killerid, COLOR_YELLOW, "[ ! ] You gain +2 PCash for killing a cop ");
SendClientMessage(killerid, COLOR_YELLOW, "[ ! ] PCash info : +2 ");
SendClientMessage(playerid, COLOR_YELLOW, "[ ! ] PCash info : -1");
GivePlayerPCash(playerid, 2);
GivePlayerPCash(playerid, -1);
}
return 1;
}
Drugs[playerid] = 0;
return 1;
}
Can i know why ? Thanks



i'll try that 1 min