[FilterScript] Simple AFK System.
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/afk", cmdtext, true, 10) == 0)
{
    new string[256];
    GetPlayerName(playerid,gPlayers[playerid],MAX_PLAYER_NAME);
    SetPlayerHealth(playerid,hp);
    TogglePlayerControllable(playerid, 0);
    format(string,sizeof(string),"%s is afk!",gPlayers[playerid]);
    SendClientMessageToAll(COLOR_RED,string);
}
if (strcmp("/back", cmdtext, true, 10) == 0)
{
    new string[256];
    TogglePlayerControllable(playerid, 1);
    SetPlayerHealth(playerid,hp2);
    format(string,sizeof(string),"%s is back!",gPlayers[playerid]);
    SendClientMessageToAll(COLOR_YELLOW,string);
    return 1;
}
return 1;
}
1. Again a AFK System
2. Very bad scripted!
Reply


Messages In This Thread
Simple AFK System. [v0.8] - by dewilix - 25.04.2011, 14:38
Re: Simple AFK System. - by [ISS]Daniele_Tom - 25.04.2011, 14:51
Re: Simple AFK System. - by dewilix - 25.04.2011, 14:53
Re: Simple AFK System. - by sniperwars - 26.04.2011, 12:47
Re: Simple AFK System. - by Markx - 26.04.2011, 12:50
Re : Simple AFK System. - by Varkoll_ - 26.04.2011, 12:54
Re: Simple AFK System. - by Mean - 26.04.2011, 23:27
Re: Simple AFK System. - by Phanto90 - 26.04.2011, 23:34
Re: Simple AFK System. - by xRyder - 26.04.2011, 23:39
Re: Simple AFK System. - by Mean - 27.04.2011, 00:13

Forum Jump:


Users browsing this thread: 3 Guest(s)