SA-MP Forums Archive
[FilterScript] Emtions - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Emtions (/showthread.php?tid=193069)



Emtions - ThePwherer - 24.11.2010

What is this?

Well, this is a little script i made that shows the emotions of a player.
For example:
if you type /win, everybody will get a text that says "(PlayerName) has won in an epic way."

This script sucks, i could have made it myself.

Well, im just saving you time if you ever wanted one but where too lazy.

Q&A
Can you do more than this simple script?

Of course i can, i just made this out of extreme boredom.

I cant script but i have a server will you script for me pl0x?

Shure why not, if im in a good mood than yes.

Код:
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT

if (strcmp("/stresed", cmdtext, true, 10) == 0)
	{
	    new name[MAX_PLAYER_NAME], string[44];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s is stresed over 9000!!!",name);
    SendClientMessageToAll(0xFF0000FF, string);
    return 1;
	}
	if (strcmp("/calm", cmdtext, true, 10) == 0)
	{
	new name[MAX_PLAYER_NAME], string[44];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s is now calm.",name);
    SendClientMessageToAll(0xFF0000FF, string);
    return 1;
    }
    if (strcmp("/fail", cmdtext, true, 10) == 0)
	{
	new name[MAX_PLAYER_NAME], string[44];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s Failed in Epic Proportions.",name);
    SendClientMessageToAll(0xFF0000FF, string);
    return 1;
    }
    if (strcmp("/won", cmdtext, true, 10) == 0)
	{
	new name[MAX_PLAYER_NAME], string[44];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s Won in an Epic Way.",name);
    SendClientMessageToAll(0xFF0000FF, string);
    return 1;
    }



Re: Emtions - Fool - 25.11.2010

Why did nobody reply, well i think cause its simple too make, anyways nice Job.


Re: Emtions - iJumbo - 25.11.2010

Nice start in samp forum ! welcome to the best community

have a nice day bb xD


Re: Emtions - Mr L - 25.11.2010

Its very simple but for newbies its good job.


Re: Emtions - Kitten - 26.11.2010

Nice job as a newbie