[Pedido] VIP¬¬'
#9

Quote:
Originally Posted by dPlaYer_
Посмотреть сообщение
Tenta ae tio '-'
pawn Код:
if(strcmp(cmd, "/setarvip", true) == 0)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0x008040AA, "|   ERRO  | Vocк nгo й admin.");
    new tmp[256] , Dias , plid;
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, 0x008040AA, "|   ERRO  | Use: /setarvip [id] [dias].");
    Dias = strval(tmp);
    if(!strlen(tmp)) return SendClientMessage(playerid, 0x008040AA, "|  ERRO  |  Use: /setarvip [id] [dias].");
    plid = strval(tmp);
    if(Dias <= 0 && Dias >= 60) return SendClientMessage(playerid, Vermelho, "O Valor й acima de 0 e abaixo de 60.");
    if(!IsPlayerConnected(plid)) return SendClientMessage(playerid, Vermelho, "{0099FF}[x]{CCCCFF} ID invбlido");
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(plid, pname, MAX_PLAYER_NAME);
    format(file2, sizeof(file2), P_CONTAS, pname);
    dini_IntSet(file2, "VIP",1);
    dini_IntSet(file2,"Vipvencido",getdate());
    dini_IntSet(file2,"Dias",Dias);
    dini_IntSet(file2, "VIP",1);
    SpawnPlayer(plid);
    format(string, sizeof(string), "» O Administrador deu VIP para %s de %d dias ", pname, Dias, tmp);
    SendClientMessage(playerid, -1, string);
    return 1;
}
E mano ta a mesma coisa

eu digito /setarvip 0 era pra aparecer digite /setarvip id dias

dai eu so digito /setarvip 0 e aparece o administrador deu vip a caralho por 0 dias ..
Reply


Messages In This Thread
VIP¬¬' - by Cromado - 25.06.2013, 17:01
Re: VIP¬¬' - by BrmBruno - 25.06.2013, 17:05
Re: VIP¬¬' - by humildadeforever - 25.06.2013, 17:30
Re: VIP¬¬' - by smiiir - 25.06.2013, 18:39
Re: VIP¬¬' - by Cromado - 25.06.2013, 19:36
Re: VIP¬¬' - by Don_Speed - 25.06.2013, 19:48
Re: VIP¬¬' - by dPlaYer_ - 25.06.2013, 20:03
Re: VIP¬¬' - by iTzDemon - 25.06.2013, 20:18
Re: VIP¬¬' - by Cromado - 25.06.2013, 20:30
Re: VIP¬¬' - by Cromado - 25.06.2013, 20:33

Forum Jump:


Users browsing this thread: 2 Guest(s)