[Plugin] "ALERT"
#1

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.
Reply
#2

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
Reply
#3

Because it makes it red :S
Reply
#4

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.
Reply
#5

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

tsk tsk tsk
Connor, I am dissapoint.
Reply
#7

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.
Reply
#8

This is good for a start.

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

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.
Reply
#10

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

Facepalm.
Reply
#11

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.
Reply
#12

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?
Reply
#13

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.
Reply
#14

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


Good job!
Reply
#15

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
Reply
#16

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.
Reply
#17

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!
Reply
#18

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

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.
Reply
#20

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)