Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==================//
- //= Made by [IB]Ironboy =//
- //==================//
- #include <a_samp>
- #if defined FILTERSCRIPT
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_PURPPLE 0xFF9122FF
- #define NICE_PINK 0xEC13C0FF
- #define orange 0xFF9900AA
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" AFK system loaded successfully");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" AFK system loaded successfully!");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/brb", cmdtext, true) == 0)
- {
- new string[256], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, 256, "« %s(ID: %d) is away from keyboard. »", name, playerid);
- SendClientMessageToAll( 0xFF9122FF, string );
- return 1;
- }
- if (strcmp("/back", cmdtext, true) == 0)
- {
- new string[256], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, 256, "« %s is back. »", name, playerid);
- SendClientMessageToAll( 0xFF9122FF, string );
- GetPlayerName(playerid, name, sizeof(name));
- format(string, 256,"[BOT]David: Welcome Back %s", name, playerid);
- SendClientMessageToAll( 0xFFFFFFFF, string );
- return 1;
- }
- if (strcmp("/bf", cmdtext, true) == 0)
- {
- new string[256], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, 256, "« %s is going for BreakFast. »", name, playerid);
- SendClientMessageToAll( 0xFF9122FF, string );
- return 1;
- }
- if (strcmp("/lunch", cmdtext, true) == 0)
- {
- new string[256], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, 256, "« %s is going for Lunch. »", name, playerid);
- SendClientMessageToAll( 0xFF9122FF, string );
- return 1;
- }
- if (strcmp("/dinner", cmdtext, true) == 0)
- {
- new string[256], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, 256, "« %s is going for Dinner. »", name, playerid);
- SendClientMessageToAll( 0xFF9122FF, string );
- return 1;
- }
- if (strcmp("/sleep", cmdtext, true) == 0)
- {
- new string[256], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, 256, "« %s is going to Sleep. »", name, playerid);
- SendClientMessageToAll( 0xFF9122FF, string );
- GetPlayerName(playerid, name, sizeof(name));
- format(string, 256,"[BOT]David: GoodNight %s", name, playerid);
- SendClientMessageToAll( 0xFFFFFFFF, string );
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement