Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- forward Ads();
- new RAdsS[][] =
- {
- "You can see the credits from this server /credits",
- "Found some hacker in our server? Warn Admins",
- "This server is the current version SA:MP 0.3.7",
- "This server has a system of ads made by skoolz"
- };
- new Text:TAds[3], TPAds;
- public OnFilterScriptInit()
- {
- SetTimer("Ads", 60000, true);
- TPAds = 0;
- print("---------------------------------------------");
- print(" @ System of Ads - Loaded ! ");
- print(" Created by: skoolz ");
- print("---------------------------------------------");
- TAds[0] = TextDrawCreate(12.400094, 310.213073, "Ads created by skoolz");
- TextDrawLetterSize(TAds[0], 0.232000, 1.204266);
- TextDrawAlignment(TAds[0], 1);
- TextDrawColor(TAds[0], -1);
- TextDrawSetShadow(TAds[0], 0);
- TextDrawSetOutline(TAds[0], -1);
- TextDrawBackgroundColor(TAds[0], 255);
- TextDrawFont(TAds[0], 1);
- TextDrawSetProportional(TAds[0], 1);
- TextDrawSetShadow(TAds[0], 0);
- TAds[1] = TextDrawCreate(3.599962, 308.720092, "_");
- TextDrawLetterSize(TAds[1], 0.488800, 1.600000);
- TextDrawTextSize(TAds[1], 246.200012, 0.000000);
- TextDrawAlignment(TAds[1], 1);
- TextDrawColor(TAds[1], -1);
- TextDrawUseBox(TAds[1], 1);
- TextDrawBoxColor(TAds[1], 88);
- TextDrawSetShadow(TAds[1], 0);
- TextDrawSetOutline(TAds[1], 0);
- TextDrawBackgroundColor(TAds[1], 255);
- TextDrawFont(TAds[1], 1);
- TextDrawSetProportional(TAds[1], 1);
- TextDrawSetShadow(TAds[1], 0);
- TAds[2] = TextDrawCreate(5.999997, 307.973449, "!");
- TextDrawLetterSize(TAds[2], 0.400000, 1.600000);
- TextDrawAlignment(TAds[2], 1);
- TextDrawColor(TAds[2], -16776961);
- TextDrawSetShadow(TAds[2], 0);
- TextDrawSetOutline(TAds[2], 0);
- TextDrawBackgroundColor(TAds[2], 255);
- TextDrawFont(TAds[2], 1);
- TextDrawSetProportional(TAds[2], 1);
- TextDrawSetShadow(TAds[2], 0);
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawHideForAll(TAds[0]);
- TextDrawHideForAll(TAds[1]);
- TextDrawHideForAll(TAds[2]);
- return 1;
- }
- public Ads()
- {
- if(TPAds == 0)
- {
- new RAnuncios = random(sizeof(RAdsS)), string[128];
- TextDrawShowForAll(TAds[0]);
- TextDrawShowForAll(TAds[1]);
- TextDrawShowForAll(TAds[2]);
- format(string, sizeof(string), "%s", RAdsS[RAnuncios]);
- TextDrawSetString(TAds[0],string);
- SetTimer("Ads", 20000, false);
- TPAds = 1;
- }
- else
- {
- TextDrawHideForAll(TAds[0]);
- TextDrawHideForAll(TAds[1]);
- TextDrawHideForAll(TAds[2]);
- TPAds = 0;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement