Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////Radekk's Afk System!!///////////////////
- //LOL ROFL
- ////////////////OK/////////////////////
- ///////////////////////////////////////////////////////////////////
- #include <a_samp>
- #define COLOR_YELLOW 0xFFFF00AA
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n-----------------------------------------");
- print(" Afk Filterscript Made By [XTC]Radekk[HD] ");
- print("----------------------------------------\n-");
- return true;
- }
- public OnFilterScriptExit()
- {
- return true;
- }
- #else
- main()
- {
- print("\n-----------------------------------------");
- print(" Afk Filterscript Made By [XTC]Radekk[HD] ");
- print("-----------------------------------------\n");
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext, "/brb", true) == 0) {
- new pName[MAX_PLAYER_NAME];
- new string[48];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "Be Right Back?");
- SendClientMessage(playerid,COLOR_YELLOW, string);
- format(string, sizeof(string), "%s Says: Brb (Be Right Back)", pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- TogglePlayerControllable(playerid,0);
- return true;
- }
- if(strcmp(cmdtext, "/afk", true) == 0) {
- new pName[MAX_PLAYER_NAME];
- new string[48];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "You Have sent A Message To all That Ur AFK");
- SendClientMessage(playerid,COLOR_YELLOW, string);
- format(string, sizeof(string), "%s(%d) Is Now AFK (Away From Keyboard)", pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- TogglePlayerControllable(playerid,0);
- return true;
- }
- if(strcmp(cmdtext, "/back", true) == 0) {
- new pName[MAX_PLAYER_NAME];
- new string[48];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "You are now back On The Keybored");
- SendClientMessage(playerid,COLOR_YELLOW, string);
- format(string, sizeof(string), "%s(%d) Is Back On The Keybored", pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- TogglePlayerControllable(playerid,1);
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment