Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Needed includes:
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- CMD:setanimation(playerid, params[])
- {
- new targetid, animlib[64], animname[64];
- if(!sscanf(params, "is[64]s[64]", targetid, animlib, animname))
- {
- if(targetid != INVALID_PLAYER_ID)
- {
- ApplyAnimation(playerid,animlib,animname,2.0,1,0,0,0,10000,1);
- }
- else SendClientMessage(playerid,-1,"Bad ID");
- }
- else SendClientMessage(playerid,-1,"SERVER: /setanimation <playerid> <animlib> <animname>");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement