Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(gasit!=0)
- {
- new later;
- if(gasit>AdTime) later=(gasit-AdTime)*30;
- else later=(30-AdTime+gasit)*30;
- format(string, sizeof(string), COLOR_WHITE1"Wait %d seconds or less for your previous ad to be sent", later);
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- new id=0;
- new active=1;
- if(AdTime>0) active=AdTime;
- for(new i=1; i<=30 ; i++)
- {
- new x;
- if(AdTime>0) x=active+i;
- else x=active+i-1;
- if(x>30) x=i-30+active;
- if(Advertise[x][Full] == 0)
- {
- if(ok==0) { id=x; ok=1; }
- }
- else
- {
- if(x>active) fullnext++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement