Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <dini>
- #include <zcmd>
- #define FILTERSCRIPT
- #define SCM(%1,%2,%3) SendClientMessage(%1,%2,%3)
- #define hellrot 0xFF6347AA
- #define hellblau 0x33CCFFAA
- #define neongelb 0xD8FF2BFF
- #define weiss 0xFFFFFFFF
- #define msg_datei "msg.txt"
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Message Filterscript by |GSR|Honig");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SetPVarInt(playerid,"join",1);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(GetPVarInt(playerid,"join") == 1)
- {
- new str[256];
- str = dini_Get(msg_datei,"Nachricht");
- ShowPlayerDialog(playerid,77,DIALOG_STYLE_MSGBOX,"{33CCFF}Nachricht des Tages",str,"Schließen","");
- SetPVarInt(playerid,"join",0);
- }
- return 1;
- }
- COMMAND:cmsg(playerid,params[])
- {
- if(isnull(params)) return SCM(playerid,hellrot,"Benutze /cmsg (Nachricht)");
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,hellrot,"Du bist kein RCON-Admin!");
- if(!dini_Exists(msg_datei))
- {
- dini_Create(msg_datei);
- dini_Set(msg_datei,"Nachricht",params);
- }
- else
- {
- dini_Set(msg_datei,"Nachricht",params);
- }
- new str[128];
- format(str,sizeof str,"* INFO: Spawnnachricht erstellt! [ %s ]",params);
- SCM(playerid,neongelb,str);
- return 1;
- }
- /*
- (c) 2011 by |GSR|Honig
- Keine Credits entfernen oder ähnliches!
- Gefallen euch meine Werke? -> Bald auf der Homepage www.honig-support.de :D
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement