29.08.2012, 18:37
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 :
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 :
And this function is called in "OnPlayerSpawn", like that (in my screen, code is indented) :
But it still not working -_-
Thanks Fou for your help. See you, And sorry for my bad english. Ciao.
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", cmd, true) == 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) == 0 || strcmp(marche,"sex",true) == 0)
// marche sexy
{
ApplyAnimation(playerid,"ped","WOMAN_runsexy",0.5,1,1,1,0,0,1);
}
}
It's very troubling in a Rp server. So, I used a function :
PHP код:
PreloadAnimLib(playerid, animlib[])
{
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
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");
Thanks Fou for your help. See you, And sorry for my bad english. Ciao.