[Ajuda] duelo
#6

Tenta isto:

pawn Код:
CMD:duel(playerid,params[])
{
    new dueloid, aname[MAX_PLAYER_NAME];
    if(sscanf(params,"d",dueloid)) return SendClientMessage(playerid,Cinza,"use: /duel <1-2>");
    if(dueloid > 2 || dueloid < 1) return SendClientMessage(playerid,Cinza,"use: /duel <1-2>");
    GetPlayerName(playerid, aname, sizeof(aname));

    switch(dueloid)
    {
        case 1:
        {
            GivePlayerWeapon(playerid, 27, 9999);
            GivePlayerWeapon(playerid, 33, 9999);
            printf("%s escolheu duel 1", aname);
        }
        case 2:
        {
            GivePlayerWeapon(playerid, 31, 9999);
            GivePlayerWeapon(playerid, 25, 9999);
            printf("%s escolheu duel 2", aname);
        }
    }
    return 1;
}
O comando funciona? O que aparece no console?
Se nгo funcionar, atualize as suas includes!
Reply


Messages In This Thread
duelo - by Lucas_HenryK - 18.10.2014, 14:31
Re: duelo - by CLANdok - 18.10.2014, 14:32
Re: duelo - by Lucas_HenryK - 18.10.2014, 14:34
Re: duelo - by CLANdok - 18.10.2014, 14:37
Re: duelo - by Lucas_HenryK - 18.10.2014, 14:59
Re: duelo - by ipsLuan - 18.10.2014, 15:20
Re: duelo - by PT - 18.10.2014, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)