XtremeAdmin2 and an afk system
#1

hello,

I was wondering if anyone knew the following;

1. I need a AFK system that allows someone to type /afk and /back and bring them back and forth from afk. I would prefer it if you found a guide, or a FS that I can just put into my script.

2. I was wondering if anyone had a system to make a dialogue register and login system for XtremeAdmin2



thank you!

-Kevin


Sorry i posted this in the wrong section before!!!
Reply
#2

please help
Reply
#3

lol easy afk

pawn Код:
if(strcmp(cmdtext, "/afk", true) == 0 || strcmp(cmdtext, "/awayfromkeyboard", true) == 0)
{
    new string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, 128, "%s is now AFK.", name, cmdtext[4]);
    SendClientMessageToAll(COLOR_LIME, string);
    TogglePlayerControllable(playerid, 0);
    PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
    SetPlayerPos(playerid, 97.8738,2239.0391,124.8243);
    return 1;
}
if(strcmp(cmdtext, "/back", true) == 0)
{
    new string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, 128, "%s is now back.", name, cmdtext[5]);
    SendClientMessageToAll(COLOR_LIME, string);
    TogglePlayerControllable(playerid, 1);
    PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
    SpawnPlayer(playerid);
    return 1;
}
if(strcmp(cmdtext, "/brb", true) == 0 || strcmp(cmdtext, "/berightback", true) == 0)
{
    new string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, 128, "%s will brb!", name, cmdtext[5]);
    SendClientMessageToAll(COLOR_LIME, string);
    TogglePlayerControllable(playerid, 1);
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 1.808619,32.384357,1199.593750);
    return 1;
}
AFK & BACK & BRB from willsuckformoney and dialog for xtremeadmin i cant help you, i dont even use it
Reply
#4

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
lol easy afk

pawn Код:
if(strcmp(cmdtext, "/afk", true) == 0 || strcmp(cmdtext, "/awayfromkeyboard", true) == 0)
{
    new string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, 128, "%s is now AFK.", name, cmdtext[4]);
    SendClientMessageToAll(COLOR_LIME, string);
    TogglePlayerControllable(playerid, 0);
    PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
    SetPlayerPos(playerid, 97.8738,2239.0391,124.8243);
    return 1;
}
if(strcmp(cmdtext, "/back", true) == 0)
{
    new string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, 128, "%s is now back.", name, cmdtext[5]);
    SendClientMessageToAll(COLOR_LIME, string);
    TogglePlayerControllable(playerid, 1);
    PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
    SpawnPlayer(playerid);
    return 1;
}
if(strcmp(cmdtext, "/brb", true) == 0 || strcmp(cmdtext, "/berightback", true) == 0)
{
    new string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, 128, "%s will brb!", name, cmdtext[5]);
    SendClientMessageToAll(COLOR_LIME, string);
    TogglePlayerControllable(playerid, 1);
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 1.808619,32.384357,1199.593750);
    return 1;
}
AFK & BACK & BRB from willsuckformoney and dialog for xtremeadmin i cant help you, i dont even use it



I got these errors

Код:
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(3281) : error 017: undefined symbol "name"
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(3281) : error 017: undefined symbol "name"
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(3281) : error 029: invalid expression, assumed zero
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(3281) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#5

tehehe my bad add

pawn Код:
new name[MAX_PLAYER_NAME];
add that at top of OnPlayerCommandText
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)