Advertisement
Guest User

Untitled

a guest
Dec 27th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. forward GW_OnPlayerDeath(playerid, killerid, reason);
  2. public GW_OnPlayerDeath(playerid, killerid, reason){
  3. if(IsAFightFaction(GetPlayerFaction(playerid))){
  4. new TempZone = GetPlayerFightzone(playerid);
  5. if(FightSystem[TempZone][fsAttackFaction] != -255 && FightSystem[TempZone][fsFightTime]){
  6. if(FightSystem[TempZone][fsCtfOfOwner][0] == playerid){
  7. new fsName[MAX_PLAYER_NAME];
  8. GetPlayerName(playerid,fsName,MAX_PLAYER_NAME);
  9. new fsText[128];
  10. format(fsText,sizeof(fsText),">>> Gangwar <<< | %s hat die Flagge fallen gelassen!",fsName);
  11. for(new i;i<GetMaxPlayers();i++){
  12. if(IsPlayerConnected(i)){
  13. if(GetPlayerFaction(i) == FightSystem[TempZone][fsOwnerFaction] || GetPlayerFaction(i) == FightSystem[TempZone][fsAttackFaction]){
  14. PlayerPlaySound(i,1058,0.0,0.0,0.0);
  15. SendClientMessage(i,FS_COL_YELLOW,fsText);
  16. }
  17. }
  18. }
  19. DestroyObject(FightSystem[TempZone][fsFlagOfOwner]);
  20. FightSystem[TempZone][fsFlagOfOwner] = CreateObject(2993,FightSystem[TempZone][fsCtfOfOwnerx],FightSystem[TempZone][fsCtfOfOwnery],(FightSystem[TempZone][fsCtfOfOwnerz]-1.0),0.0,0.0,0.0,150.0);
  21. FightSystem[TempZone][fsCtfOfOwner][0] = -255;
  22. FightSystem[TempZone][fsCtfOfOwner][1] = 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement