[AFK System] need help
#3

pawn Код:
forward TimeAFK(playerid);

public TimeAFK(playerid)
{
    TogglePlayerControllable(playerid, 0);
    return 1;
}

if(strcmp("/afk", cmdtext, true) == 0)
{
     SetTimerEx("TimeAFK", 1800000, false, "d", playerid);
     TogglePlayerControllable(playerid, 1)
     new Name[MAX_PLAYER_NAME];
     new string[256]
     GetPlayerName(playerid, Name, MAX_PLAYER_NAME];
     format(string, sizeof(string), "%s Entered into auto-away mode", Name);
     SendClientMessageToAll(0xFFFFFFFF, string);
     return 1;
}
Try This.
Reply


Messages In This Thread
[AFK System] need help - by JeroenX - 08.04.2012, 15:10
Re: [AFK System] need help - by Plastic - 08.04.2012, 15:18
Re: [AFK System] need help - by .FuneraL. - 08.04.2012, 16:37
Re: [AFK System] need help - by JeroenX - 08.04.2012, 21:19
Re: [AFK System] need help - by [EuG]ZeRoGoD - 08.04.2012, 21:50
Re: [AFK System] need help - by [EuG]ZeRoGoD - 08.04.2012, 21:56

Forum Jump:


Users browsing this thread: 1 Guest(s)