SA-MP Forums Archive
[Plugin] "ALERT" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] "ALERT" (/showthread.php?tid=258678)

Pages: 1 2


"ALERT" - 1337connor - 31.05.2011

Today, I have made a plugin called "Alert".
So, the purpose of this plugin is to send an alert to the console, in a red message, and help people to debug their scripts and such. More functionality will be added later such as another parameter, color[];
Example
Code:
alert("Blah has made a rocket launcher");
And this would do ..
[ALERT] Blah has made a rocket launcher
This will also echo in whatever your default Text To Speech voice is, "Blah has made a rocket launcher".



So..
Links:
V2(LATEST)
Plugin Download: http://up.ht/iN8bt3
Source: http://up.ht/jBgo9C

V1
http://www.mediafire.com/?wno9u499a1io19k ( Plugin Download )
http://www.mediafire.com/?5aqueaqcqb7kmi1 ( Source )
CREDITS
Connor - Scripting
RyDeR` - Tutorial

ChangeLog
Code:
Added TTS support. Will now say your text out loud.



Respuesta: "ALERT" - admantis - 31.05.2011

In plugin? why plugin? It's useless and stupid if you can do it in PAWN within 4 lines.

pawn Code:
stock alert(chars[])    // 1
{       // 2
    return SendClientMessageToAll(0xFF0000FF, chars); // 3
} // 4



Re: "ALERT" - 1337connor - 31.05.2011

Because it makes it red :S


Respuesta: Re: "ALERT" - admantis - 31.05.2011

Quote:
Originally Posted by 1337connor
View Post
Because it makes it red :S
That has nothing to do and is still possible in PAWN ! Just do this, once again:
pawn Code:
stock alert(chars[])    // 1
{       // 2
    return SendClientMessageToAll(0xFF0000FF, chars); // 3
} // 4
And I've counted the lines for you.


Re: "ALERT" - 1337connor - 31.05.2011

OH, no.. it sends it to the CONSOLE. The actual samp-server.exe


Re: "ALERT" - Trippy - 31.05.2011

tsk tsk tsk
Connor, I am dissapoint.


Respuesta: "ALERT" - admantis - 31.05.2011

Oh well.. my bad then, that makes it more special. However i -think- it's also possible in PAWN (and there is already another Plugin like this but that's not wrong).

Good job.


Awesome Plugin - SchurmanCQC - 31.05.2011

This is good for a start.

Quote:
Originally Posted by Trippy
tsk tsk tsk
Connor, I am dissapoint.
Shut up.


Re: Respuesta: "ALERT" - SchurmanCQC - 01.06.2011

Quote:
Originally Posted by anonymousx
View Post
I can do it in one line.
pawn Code:
stock alert(chars[]) return SendClientMessageToAll(0xFF0000FF, chars);
This isn't some kind of spam competition.


Re: "ALERT" - Memoryz - 01.06.2011

He said IN THE CONSOLE not a message to all clients.

Facepalm.


Re: "ALERT" - CyNiC - 01.06.2011

Only one person reads this type of message, then everything that the plugin can offer, would not be better to create another type of warning? (as a pop-up window, a sound, or any other thing)?
I think that you could learn more to release something more useful.


Re: "ALERT" - Snipa - 01.06.2011

Guys STFU.. make some constructive criticism instead of a spam-fest trying to make it the least amount of lines..

Although it is true you can just use print().. I wonder if you can use colors in print?


Re: "ALERT" - SchurmanCQC - 01.06.2011

Quote:
Originally Posted by Snipa
View Post
Guys STFU.. make some constructive criticism instead of a spam-fest trying to make it the least amount of lines..

Although it is true you can just use print().. I wonder if you can use colors in print?
Agreed 100%.

Do you guys even know how hard it is to make a plugin? Hard.

And no, you can't use colors unless you use a special include.


Re: "ALERT" - Ricop522 - 01.06.2011

This is a good plugin, makes a red alert in the console .
Printf send a white alert.


Good job!


Re: "ALERT" - Mark_Weston - 01.06.2011

Suggestion: If someone logs into rcon** make it in bold red. or if someone logged in into rcon bold red too.

/good luck bro

Really usefull


Re: "ALERT" - 1337connor - 01.06.2011

Quote:
Originally Posted by Mark_Weston
View Post
Suggestion: If someone logs into rcon** make it in bold red. or if someone logged in into rcon bold red too.

/good luck bro

Really usefull
Hmm.. I'll try to see if I can make it bold.


Re: "ALERT" - Kyosaur - 01.06.2011

This is really only useful to people who host their servers on their home computers :\. Im happy to see more people messing around with the plugin SDK though, keep it up!


Re: "ALERT" - Ash. - 01.06.2011

This is really nice. However i also agree with Kwarde's idea, printc ftw!


Re: Respuesta: "ALERT" - Biesmen - 01.06.2011

Quote:
Originally Posted by anonymousx
View Post
I can do it in one line.
pawn Code:
stock alert(chars[]) return SendClientMessageToAll(0xFF0000FF, chars);
Learn to read.
--
Great job on the plugin.


Re: "ALERT" - Calgon - 01.06.2011

A very useless plugin.

Quote:
Originally Posted by Schurman
View Post
Agreed 100%.

Do you guys even know how hard it is to make a plugin? Hard.

And no, you can't use colors unless you use a special include.
It's not hard, and it's VERY easy to make a plugin of this nature, especially if you just copied and pasted from RyDeR`'s tutorial.