Need help ! ^^
#2

pawn Код:
COMMAND:moveafk(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xDEEE20FF, "You not in RCON.");
    new gsendid;
    new string[256];
    new str[256];
    new PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
    if(sscanf(params, "u",gsendid))return SendClientMessage(playerid,COLOR_LIGHTRED, "Usage: {CC0099}/moveafk [ID]");
    else if(gsendid == INVALID_PLAYER_ID)return SendClientMessage(playerid, COLOR_LIGHTRED, "{9999CC}Player not found!");
    else
    {
        TogglePlayerControllable(gsendid, 0);
        GetPlayerName(gsendid, sendername, sizeof(sendername));
        format(str, sizeof(str), "INFO: %s is puted AFK by admin .", sendername);
        SendClientMessageToAll(COLOR_BRIGHTRED, str);
        SendClientMessage(gsendid, COLOR_WHITE, "Admin put you AFK. Use /back to come back in the game.");
        SetPlayerVirtualWorld(gsendid, GetPlayerVirtualWorld(playerid) + 123);
        LoopingAnim(gsendid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
        AFK[gsendid] = 1;
        format(string, sizeof(string), "~w~ADMIN PUT ~b~YOU ~r~AFK");
        GameTextForPlayer(gsendid, string, 5000, 3);
        PlayerPlaySound(gsendid, 1076, 0.0, 0.0, 0.0);
        SetPlayerAttachedObject(gsendid, SLOT, 18645, 2, 0.079999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000);
    }
    if(AFK[gsendid] == 0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "He is AFK. He need to use /back.");
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Little Dialog Help :D - by Gertin - 07.03.2011, 14:53
Re: Need help ! ^^ - by Scrip - 07.03.2011, 15:06
Re: Need help ! ^^ - by Gertin - 07.03.2011, 15:37
Re: Need help ! ^^ - by GaGlets(R) - 07.03.2011, 15:57
Re: Need help ! ^^ - by Gertin - 07.03.2011, 16:11
Re: Need help ! ^^ - by Gertin - 08.03.2011, 11:43
Re: Need help ! ^^ - by Stigg - 08.03.2011, 11:46
Re: Need help ! ^^ - by Gertin - 08.03.2011, 12:01
Re: Need help ! ^^ - by GaGlets(R) - 08.03.2011, 14:37
Re: Need help ! ^^ - by Gertin - 08.03.2011, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)