24.10.2015, 16:54
public OnVehicleDeath(vehicleid, killerid)
{
if(gTeam[killerid] == TEAM_GREEN)
if(AccInfo[killerid][tdm] == 1)
{
if(vehicleid == terroristheli)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetPlayerTeam(i) == TEAM_GREEN)
{
SendClientMessage(i,LIGHTBLUE,"{0498FB}~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(i,LIGHTBLUE,"{00bfff}[NGP]: {FFFF00}Cops Save The helicopter every Cops team mate Get 5 Score 5000$ Rs/5!");
SendClientMessage(i,LIGHTBLUE,"{0498FB}~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
AccInfo[i][rupees] +=5;
GameTextForPlayer(i,"~y~5 Score~n~~g~5000$~n~~y~Rs/5",2000,1);
SetPlayerScore(i,GetPlayerScore(i)+5);
GivePlayerMoney(i,5000);
SetVehicleToRespawn(terroristheli);
}
}
}
}
return 1;
}
{
if(gTeam[killerid] == TEAM_GREEN)
if(AccInfo[killerid][tdm] == 1)
{
if(vehicleid == terroristheli)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetPlayerTeam(i) == TEAM_GREEN)
{
SendClientMessage(i,LIGHTBLUE,"{0498FB}~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(i,LIGHTBLUE,"{00bfff}[NGP]: {FFFF00}Cops Save The helicopter every Cops team mate Get 5 Score 5000$ Rs/5!");
SendClientMessage(i,LIGHTBLUE,"{0498FB}~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
AccInfo[i][rupees] +=5;
GameTextForPlayer(i,"~y~5 Score~n~~g~5000$~n~~y~Rs/5",2000,1);
SetPlayerScore(i,GetPlayerScore(i)+5);
GivePlayerMoney(i,5000);
SetVehicleToRespawn(terroristheli);
}
}
}
}
return 1;
}