Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////////////
- // //
- // //
- // //
- // //
- // //
- // SkiLLz aka JPs Brb script //
- // //
- // v2 //
- // //
- // //
- // //
- // //
- // //
- // //
- // //
- // //
- //////////////////////////////////////////////////////////////////////////////// //
- #include <a_samp>
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_GREEN 0x33AA33AA
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n-----------------------------------------");
- print(" Brb system loaded !! By JPs ");
- print("----------------------------------------\n-");
- return true;
- }
- public OnFilterScriptExit()
- {
- return true;
- }
- #else
- main()
- {
- print("\n-----------------------------------------");
- print(" brb System By JPs unloaded ");
- print("-----------------------------------------\n");
- }
- #endif
- new Float:AFKpos[MAX_PLAYERS][3];
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext, "/brb", true) == 0)
- {
- new pName[MAX_PLAYER_NAME];
- new string[48];
- SendClientMessage(playerid, COLOR_GREEN, "You are now AFK, to rejoin the game use /back");
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "%s is Away from keyboard!", pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- GetPlayerPos(playerid,AFKpos[playerid][0], AFKpos[playerid][1], AFKpos[playerid][2]);
- TogglePlayerControllable(playerid,0);
- SetPlayerPos(playerid,-1871.2036,780.8176,113.2891);
- return 1;
- }
- if(strcmp(cmdtext, "/back", true) == 0)
- {
- new pName[MAX_PLAYER_NAME];
- new string[48];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "Welcome back %s!");
- SendClientMessage(playerid, COLOR_GREEN, string);
- format(string, sizeof(string), "%s(ID:%d) is now back ", pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- TogglePlayerControllable(playerid,1);
- SetPlayerPos(playerid,AFKpos[playerid][0], AFKpos[playerid][1], AFKpos[playerid][2]);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment