Advertisement
Guest User

Untitled

a guest
May 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. if(gasit!=0)
  2. {
  3. new later;
  4. if(gasit>AdTime) later=(gasit-AdTime)*30;
  5. else later=(30-AdTime+gasit)*30;
  6. format(string, sizeof(string), COLOR_WHITE1"Wait %d seconds or less for your previous ad to be sent", later);
  7. SendClientMessage(playerid, -1, string);
  8. return 1;
  9. }
  10. new id=0;
  11. new active=1;
  12. if(AdTime>0) active=AdTime;
  13. for(new i=1; i<=30 ; i++)
  14. {
  15. new x;
  16. if(AdTime>0) x=active+i;
  17. else x=active+i-1;
  18. if(x>30) x=i-30+active;
  19. if(Advertise[x][Full] == 0)
  20. {
  21. if(ok==0) { id=x; ok=1; }
  22. }
  23. else
  24. {
  25. if(x>active) fullnext++;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement