jeudi 3 septembre 2015

The anim not play

Hello all , i make a Command when type /cutwood to apply anim and give weapon | look:

PHP Code:

CMD:taie(playerid,params[])
{
    if(
IsPlayerConnected(playerid))
    {
        if(
PlayerInfo[playerid][pJob] != 16) return SCM(playerid0xFFB870FF"{FFB870}Nu esti Lumberjack.");
        if(!
IsPlayerNearWood(playerid)) return SCM(playerid,COLOR_WHITE,"{FFF8C6}Nu esti la unul dintre copaci.");
        if(
woodtaie[playerid] == 0)
        {
            
GivePlayerWeapon(playerid,9,1);
            
ApplyAnimation(playerid,"CHAINSAW","WEAPON_csaw",4.1,1,0,0,0,1);
            
            
woodtaie[playerid] = 1;
            
SetTimerEx("WoodTaie",7000,false,"d",playerid);
        }
        else
        {
            
SendClientMessage(playerid,-1,"Tu tai deja un copac.");
        }
    }
    return 
1;


BUT the anim not play


Aucun commentaire:

Enregistrer un commentaire