Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //AFK SYSTEM BY AiZeAh555
- //PLEASE DONT REMOVE CREDITS
- #include <a_samp>
- #define GREEN 0x99FF9900
- #define C_YELLOW 0xFFFF00AA
- new string[128];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" AFK SYSTEM LOADED BY aizeah555 ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/afk", cmdtext, true) == 0)
- {
- SendClientMessage(playerid, C_YELLOW, "You are now AFK!");
- TogglePlayerControllable(playerid,0);
- new string3[70];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string3, sizeof(string3), "%s is now AFK!", name);
- SendClientMessageToAll(GREEN, string3);
- format(string, sizeof(string), "%s is now AFK!", name);
- GameTextForAll(string, 6000,3);
- }
- if(strcmp("/bck", cmdtext, true) == 0)
- {
- SendClientMessage(playerid, C_YELLOW, "You are Back Again!");
- TogglePlayerControllable(playerid,1);
- new string3[70];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string3, sizeof(string3), "%s is Back Again!!", name);
- SendClientMessageToAll(GREEN, string3);
- format(string, sizeof(string), "%s is Back Again!", name);
- GameTextForAll(string, 6000,3);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment