Advertisement
Custura

Untitled

Apr 13th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. CMD:wartime(playerid, params[])
  2. {
  3. if(!IsAMember(playerid)) return SCM(playerid,COLOR_WHITE,"{FFB870}Error: You are not a member of the Mafia.");
  4. new faction,string[100];
  5. faction = PlayerData[playerid][pFaction];
  6. for(new i = 0; i < sizeof(TurfInfo); i++)
  7. {
  8. if((WarInfo[i][wFaction] == faction) || (WarInfo[i][wAttacker] == faction))
  9. {
  10. if(WarInfo[i][wFaction] == faction)
  11. {
  12. format(string,sizeof(string),"You are in war with %s on the turf %d.",Faction_GetName(WarInfo[i][wAttacker]),i);
  13. SCM(playerid,TEAM_AZTECAS_COLOR,string);
  14. }
  15. if(WarInfo[i][wAttacker] == faction)
  16. {
  17. format(string,sizeof(string),"Your mafia attacked turf %d owned by %s.",i,Faction_GetName(TurfInfo[i][zOwned]));
  18. SCM(playerid,TEAM_AZTECAS_COLOR,string);
  19. }
  20. format(string,sizeof(string),"Turf %d, Time remaining: %s",i,CalculeazaTimp(WarInfo[i][wTime]));
  21. SCM(playerid,TEAM_AZTECAS_COLOR,string);
  22. }
  23. }
  24. return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement