[ajuda] /merendo
#8

pawn Код:
new Rendido[MAX_PLAYERS];

if(strcmp(cmd, "/merendo", true) == 0)
{
    new LevelProcurado = GetPlayerWantedLevel(playerid);
    if(LevelProcurado <= 0) return SendClientMessage(playerid, -1, "Vocк nгo estб procurado");
    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
        //ApplyAnimation(playerid,"FINALE","FIN_Land_Die",4.1,0,1,1,1,1); //animaзгo alternativa
        ResetPlayerWeaponsEx(playerid);
        SetTimerEx("MeRendo", 1000, 0, "i", playerid);
        Rendido[playerid] = 1;
        SendClientMessage(playerid, COLOR_LIGHTRED, "   Vocк se Rendeu e jб estб Desarmado. Portanto, se for vнtima de Abusers tire print (F8) e denuncie!!!");
        return 1;
    }
}

forward MeRendo(playerid)
public MeRendo(playerid)
{
    TogglePlayerControllable(playerid, 0);
    return 1;
}
Na key de sair da animaзгo, use:

pawn Код:
if(Rendido[playerid] == 1) return 0;
Reply


Messages In This Thread
[ajuda] /merendo - by Raphael_Lima - 08.10.2011, 03:35
Re: ajuda /merendo - by Bruno Pereira - 08.10.2011, 03:49
Re: ajuda /merendo - by Raphael_Lima - 08.10.2011, 04:24
Re: ajuda /merendo - by Bruno Pereira - 08.10.2011, 04:33
Re: ajuda /merendo - by Raphael_Lima - 08.10.2011, 04:35
Re: ajuda /merendo - by Vai_Besta - 08.10.2011, 05:18
Re: ajuda /merendo - by Raphael_Lima - 08.10.2011, 05:30
Re: ajuda /merendo - by Lуs - 08.10.2011, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)