But doese it works if im useing 1 preload like for 10 anim?
example:
Code:
if(!gPlayerAnimLibsPreloaded[playerid]) {
PreloadAnimLib(playerid,"10_ANIM");
gPlayerAnimLibsPreloaded[playerid] = 1;
}
return 1;
}
And that all with 10 anims like Smokeing, hiding, arresting etc... Doese it would work? Just for not filling scipt too big
Code:
// Place a Bomb
if (strcmp("/bomb", cmdtext, true) == 0) {
ClearAnimations(playerid);
OnePlayAnim(playerid, "10_ANIM", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
return 1;
}
// Police Arrest
if (strcmp("/getarrested", cmdtext, true, 7) == 0) {
LoopingAnim(playerid,"10_ANIM", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
return 1;
}
// Laugh
if (strcmp("/laugh", cmdtext, true) == 0) {
OnePlayAnim(playerid, "10_ANIM", "Laugh_01", 4.0, 0, 0, 0, 0, 0); // Laugh
return 1;
}