23.12.2011, 17:16
Yes, here is the code of Animation "/sit"
Quote:
if(strcmp(cmd, "/sit", true) == 0) { if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) { return 1; } if (!strlen(cmdtext[5])) return SendClientMessage(playerid,COLOR_USAGE,"TIP: /sit [1-4]"); switch (cmdtext[5]) { case '1': BackAnim(playerid,"PED","SEAT_down",4.1,0,1,1,1,0, ; case '2': LoopingAnim(playerid,"MISC","seat_lr",2.0,1,0,0,0, 0); case '3': LoopingAnim(playerid,"MISC","seat_talk_01",2.0,1,0 ,0,0,0); case '4': LoopingAnim(playerid,"MISC","seat_talk_02",2.0,1,0 ,0,0,0); default: SendClientMessage(playerid,COLOR_USAGE,"TIP: /sit [1-4]"); } return 1; } |