Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- #define COLOR_WHITE 0xFFFFFFAA
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" AFK system by [DDP]omgitsgodzilla");
- print("--------------------------------------\n");
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" AFK system by [DDP]omgitsgodzilla");
- print("----------------------------------\n");
- }
- #endif
- CMD:afk(playerid, params [])
- {
- new string[129], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- SendClientMessage(playerid, COLOR_WHITE, "You are now AFK.");
- format(string,sizeof string, "%s is now AFK.",pName);
- SendClientMessageToAll(0xFF0000AA,string);
- TogglePlayerControllable(playerid, 0);
- return 1;
- }
- CMD:back(playerid, params [])
- {
- new string[129], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- SendClientMessage(playerid, COLOR_WHITE, "You are no longer AFK.");
- format(string,sizeof string, "%s is no longer AFK.",pName);
- SendClientMessageToAll(0xFF0000AA,string);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement