fixes.inc 510 B

1234567891011121314151617181920212223
  1. #if defined _connection //if minc is defined
  2. #endinput //ends the input(i think!)
  3. #endif //ends if
  4. #define _connect //defines minc
  5. native SendClientJob(playerid, color, string[], job);
  6. stock SendClientJob(playerid, color, string[], job)
  7. {
  8. for(new i; i=MAX_PLAYERS; i<MAX_PLAYERS; i++)
  9. {
  10. if(IsPlayerConnected(i))
  11. {
  12. if(!i == playerid)
  13. {
  14. if(PlayerInfo[i][pJob] == job || PlayerInfo[i][pJob2] == job)
  15. {
  16. SendClientMessage(i, color, string);
  17. }
  18. }
  19. }
  20. }
  21. }