Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////////////////////////////////////////////////////////
- // //
- // //////// // // //// //// //////// // //
- // // // // // // // // // // // // //
- // // // // // // // // // // // // //
- // //////// //// // /// // //////// // //
- // // // // // // // // // // //
- // // // // // // // // // // //
- // // // // // // // // // //////// //
- // //
- ///////////////////////////////////////////////////////////
- // Created by [Asy]Akmal 06/06/2000 //
- ///////////////////////////////////////////////////////////
- #include <a_samp>
- new Text:shadow;
- public OnFilterScriptInit()
- {
- print("\n Simple Random Message by [Asy]Akmal \n");
- SetTimer("SendMessageToPublic", 240000, true); // 3 minutes only.
- SetTimer("TimerChange", 3000, 1);
- shadow = TextDrawCreate(18.000000, 428.000000, " ");
- TextDrawAlignment(shadow, 0);
- TextDrawBackgroundColor(shadow, 0x000000FF);
- TextDrawFont(shadow, 2);
- TextDrawLetterSize(shadow, 0.199999, 0.899999);
- TextDrawColor(shadow, 0xFFFFFFFF);
- TextDrawSetOutline(shadow, 1);
- TextDrawSetProportional(shadow, 1);
- TextDrawSetShadow(shadow, 1);
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- new RandomMessage[][] = // Edit 'Your Random Message' to change your messages favourite.
- {
- "Your Random Message",
- "Your Random Message",
- "Your Random Message"
- };
- new Intro[][] = // Change This All.
- {
- "Change Ip Addreas",
- "Put Samp Server Name"
- };
- public OnPlayerConnect(playerid)
- {
- new string[MAX_PLAYERS], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- format(string, sizeof(string), "||| %s has joined the server |||", name);
- SendClientMessageToAll(0xFFFFFFAA, string); // Change your favourite color.
- SendClientMessage(playerid, 0xFFFFFFAA, "::: Simple Random Message by [Asy]Akmal :::");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new name[MAX_PLAYER_NAME], string[MAX_PLAYERS];
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- switch(reason)
- {
- case 0: format(string, sizeof(string), "||| %s has left the server (Timeout) |||", name);
- case 1: format(string, sizeof(string), "||| %s has left the server (Leaving) |||", name);
- case 2: format(string, sizeof(string), "||| %s has left the server (Kicked/Banned) |||", name);
- }
- SendClientMessageToAll(0xFFFFFFAA, string); // Change your favourite color.
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid, shadow);
- return 1;
- }
- forward SendMessageToPublic();
- public SendMessageToPublic()
- {
- new rand = random(sizeof(RandomMessage));
- SendClientMessageToAll(-1, RandomMessage[rand]); // Don't edit this script line.
- }
- forward TimerChange();
- public TimerChange()
- {
- TextDrawSetString(shadow, Intro[random(sizeof(Intro))]);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SendDeathMessage(killerid, playerid, reason); // Shows the kill in the killfeed
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment