Players don't see ApplyAnimation
#1

Hello I'm coming here to find help please I want already to tell you that i'm french and it's possible that there will be mistakes.

So, I use the function "ApplyAnimation" in my RolePlay Server.
It's work very good for me, but, the players arround me don't see the animation. For exemple, I did that :
PHP код:
    if(strcmp("/marcher"cmdtrue) == 0)
    {
        
ClearAnimations(playerid);
        
        new 
marche[128];
        
marche strtok(cmdtext,idx);
        
        if(!
strlen(marche))
        {
            
SendClientMessage(playerid,RED,"Utilisation : /marcher sexy | vieux | gros | bourre | gang1 | gang 2");
            return 
1;
        }
        
        if(
strcmp(marche,"sexy",true) == || strcmp(marche,"sex",true) == 0)
        
// marche sexy
        
{
            
ApplyAnimation(playerid,"ped","WOMAN_runsexy",0.5,1,1,1,0,0,1);
        }

This command allow me to walk sexy. But, when I do this command, the players arround me just me flying
It's very troubling in a Rp server. So, I used a function :
PHP код:
PreloadAnimLib(playeridanimlib[])
{
    
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);

And this function is called in "OnPlayerSpawn", like that (in my screen, code is indented) :
PHP код:
PreloadAnimLib(playerid,"BOMBER"); PreloadAnimLib(playerid,"RAPPING");
       
PreloadAnimLib(playerid,"SHOP"); PreloadAnimLib(playerid,"BEACH");
    
PreloadAnimLib(playerid,"SMOKING"); PreloadAnimLib(playerid,"FOOD");
    
PreloadAnimLib(playerid,"ON_LOOKERS"); PreloadAnimLib(playerid,"DEALER");
    
PreloadAnimLib(playerid,"CRACK"); PreloadAnimLib(playerid,"CARRY");
    
PreloadAnimLib(playerid,"COP_AMBIENT"); PreloadAnimLib(playerid,"PARK");
    
PreloadAnimLib(playerid,"INT_HOUSE"); PreloadAnimLib(playerid,"PED");
    
PreloadAnimLib(playerid,"MISC"); PreloadAnimLib(playerid,"OTB");
    
PreloadAnimLib(playerid,"BD_Fire"); PreloadAnimLib(playerid,"BENCHPRESS");
    
PreloadAnimLib(playerid,"KISSING"); PreloadAnimLib(playerid,"BSKTBALL");
    
PreloadAnimLib(playerid,"MEDIC"); PreloadAnimLib(playerid,"SWORD");
    
PreloadAnimLib(playerid,"POLICE"); PreloadAnimLib(playerid,"SUNBATHE");
    
PreloadAnimLib(playerid,"FAT"); PreloadAnimLib(playerid,"WUZI");
    
PreloadAnimLib(playerid,"SWEET"); PreloadAnimLib(playerid,"ROB_BANK");
    
PreloadAnimLib(playerid,"GANGS"); PreloadAnimLib(playerid,"RIOT");
    
PreloadAnimLib(playerid,"GYMNASIUM"); PreloadAnimLib(playerid,"CAR");
    
PreloadAnimLib(playerid,"CAR_CHAT"); PreloadAnimLib(playerid,"GRAVEYARD");
    
PreloadAnimLib(playerid,"POOL"); 
But it still not working -_-

Thanks Fou for your help. See you, And sorry for my bad english. Ciao.
Reply
#2

i'm the only who have got this problem ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)