Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward GW_OnPlayerDeath(playerid, killerid, reason);
- public GW_OnPlayerDeath(playerid, killerid, reason){
- if(IsAFightFaction(GetPlayerFaction(playerid))){
- new TempZone = GetPlayerFightzone(playerid);
- if(FightSystem[TempZone][fsAttackFaction] != -255 && FightSystem[TempZone][fsFightTime]){
- if(FightSystem[TempZone][fsCtfOfOwner][0] == playerid){
- new fsName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,fsName,MAX_PLAYER_NAME);
- new fsText[128];
- format(fsText,sizeof(fsText),">>> Gangwar <<< | %s hat die Flagge fallen gelassen!",fsName);
- for(new i;i<GetMaxPlayers();i++){
- if(IsPlayerConnected(i)){
- if(GetPlayerFaction(i) == FightSystem[TempZone][fsOwnerFaction] || GetPlayerFaction(i) == FightSystem[TempZone][fsAttackFaction]){
- PlayerPlaySound(i,1058,0.0,0.0,0.0);
- SendClientMessage(i,FS_COL_YELLOW,fsText);
- }
- }
- }
- DestroyObject(FightSystem[TempZone][fsFlagOfOwner]);
- FightSystem[TempZone][fsFlagOfOwner] = CreateObject(2993,FightSystem[TempZone][fsCtfOfOwnerx],FightSystem[TempZone][fsCtfOfOwnery],(FightSystem[TempZone][fsCtfOfOwnerz]-1.0),0.0,0.0,0.0,150.0);
- FightSystem[TempZone][fsCtfOfOwner][0] = -255;
- FightSystem[TempZone][fsCtfOfOwner][1] = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement