[Pedido] Bloquear ORGVIP Por CMD
#2

pawn Код:
#include ZCMD
#include DOF2
native sscanf(const data[], const format[], {Float,_}:...); //requer plugin

CMD:orgvip(playerid, params[] ) {

    new
        OrgId,
        Opcao,
        pStr[45]
    ;  

    if (sscanf(params, "ii", OrgId, Opcao) )
        return SendClientMessage(playerid, -1, "Uso correto: /orgvip [Org Id] [0 Para destativar/ 1 Para Ativar]");
   
    if (Opcao != 0 && Opcao != 1 )
        return SendClientMessage(playerid, -1, "Uso correto: /orgvip [Org Id] [0 Para destativar/ 1 Para Ativar]");

    format (pStr, sizeof pStr, "Org%i", OrgId);

    if ( DOF2_ExistFile("OrgVip.ini") )
        DOF2_SetInt("OrgVip.ini", pStr, Opcao);

    else {
        DOF2_CreateFile("OrgVip.ini");
        DOF2_SetInt("OrgVip.ini", pStr, Opcao);
   
    }

    format(pStr, sizeof pStr, "Organizaзгo %i teve beneficios de Org Vip %s", OrgId, Opcao ? ("ativado") : ("desativado") );
    SendClientMessage(playerid, -1, pStr);

    return true;
}
Reply


Messages In This Thread
Bloquear ORGVIP Por CMD - by Powers - 07.04.2013, 20:34
Re: Bloquear ORGVIP Por CMD - by Gii - 07.04.2013, 20:54
Re: Bloquear ORGVIP Por CMD - by Powers - 07.04.2013, 20:58
Re: Bloquear ORGVIP Por CMD - by Gii - 07.04.2013, 21:01
Re: Bloquear ORGVIP Por CMD - by Powers - 07.04.2013, 21:03
Re: Bloquear ORGVIP Por CMD - by Gii - 07.04.2013, 21:05

Forum Jump:


Users browsing this thread: