Animacije

Započeo kizla, Januar 11, 2010, 14:53:06 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

kizla

Ove sam animacije ce biti u mojem GM-u izvolite:

//---------------------------------------------------------------------------------
/*                            Animacije                                         */
//---------------------------------------------------------------------------------

   if(strcmp(cmdtext, "/handsup", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
return 1;
}
}
   if(strcmp(cmdtext, "/drink", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/gwalk", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/gwalk1", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/wave", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"KISSING","BD_GF_Wave",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/gift", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"KISSING","gift_give",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/lap", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"LAPDAN1","LAPDAN_D",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/bitchslap", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"MISC","bitchslap",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/sjedni", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"MISC","SEAT_LR",4.1,0,0,0,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/scratch", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"MISC","Scratchballs_01",4.1,1,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/die", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Die",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/pedal", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GYMNASIUM","gym_bike_pedal",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/smoking", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SMOKING","M_smklean_loop",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sit1", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"BLOWJOBS","BJ_COUCH_START_P",4.1,0,0,0,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/toughwalk", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"MUSCULAR","MuscleWalk",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/gangrun", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"PED","run_gang1",4.1,1,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/plunger", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"MISC","Plunger_01",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/ghand", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GHANDS","gsign1",4.1,1,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/gsign", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GHANDS","gsign2",4.1,1,1,1,1,1);
return 1;
}
}
   if(strcmp(cmdtext, "/bsign", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GHANDS","gsign3",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/hsign", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GHANDS","gsign4",4.1,1,1,1,1,1);
           return 1;
}
}
if(strcmp(cmdtext, "/vsign", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GHANDS","gsign5",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/ssign", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GHANDS","gsign3LH",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/asign", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GHANDS","gsign4LH",4.1,1,1,1,1,1);
return 1;
}
}
if(strcmp(cmdtext, "/lssign", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GHANDS","gsign2LH",4.1,1,1,1,1,1);
return 1;
}
}
if(strcmp(cmdtext, "/t4lsign", true) == 0)
      {if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GHANDS","gsign1LH",4.1,1,1,1,1,1);
return 1;
}
}
   if(strcmp(cmdtext, "/celebrate", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"Freeweights","gym_free_celebrate",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/rope", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"ped","abseil",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/fucku", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"ped","fucku",4.1,1,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/bomb", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"ped","bomber",4.1,0,1,1,1,1);
    return 1;
   }
}
   if(strcmp(cmdtext, "/wall", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"ped","HIT_wall",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/laugh", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RAPPING","Laugh_01",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/animrap", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RAPPING","RAP_A_IN",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/animrap1", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RAPPING","RAP_B_IN",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/animrap2", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/animrap3", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RAPPING","RAP_A_OUT",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/animrap4", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RAPPING","RAP_B_Loop",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/animrap5", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RAPPING","RAP_B_OUT",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/animrap6", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/aim", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SHOP","ROB_Loop",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/hurt", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SWEET","Sweet_Injuredloop",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/sunbath", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SUNBATHE","batherdown",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/fatrun", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"FAT","FatRun",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/hs", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GANGS","hndshkfa",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/hs1", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GANGS","hndshkaa",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/hs2", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GANGS","hndshkba",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/hs3", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GANGS","hndshkca",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/hs4", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GANGS","hndshkda",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/hs5", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"GANGS","hndshkea",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sjedni2", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"INT_OFFICE","OFF_Sit_Idle_Loop",4.1,0,0,0,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/sjedni3", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"INT_OFFICE","OFF_Sit_Type_Loop",4.1,0,0,0,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/sjedni3", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"INT_OFFICE","OFF_Sit_Watch",4.1,0,0,0,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/sjedni4", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"LOWRIDER","Sit_relaxed",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sjedni5", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_M_IdleA",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sjedni6", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_M_IdleB",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sjedni7", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_M_IdleC",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sjedni8", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_M_in",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sjedni9", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_M_out",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sjedni10", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_W_idleA",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sjedni11", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_W_idleB",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sjedni12", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_W_idleC",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sjedni13", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_W_in",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/sjedni14", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"SUNBATHE","ParkSit_W_out",4.1,0,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/riot", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RIOT","RIOT_Angry",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/riot2", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RIOT","RIOT_Angry_B",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/riot3", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RIOT","RIOT_challenge",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/riot4", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RIOT","RIOT_CHANT",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/riot5", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RIOT","RIOT_FUKU",4.1,1,1,1,1,1);
    return 1;
}
}
if(strcmp(cmdtext, "/riot6", true) == 0) {
      if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"RIOT","RIOT_shout",4.1,1,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/cpr", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"MEDIC","CPR",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/spavaj", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"INT_HOUSE","BED_In_L",4.1,0,0,0,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/sjedni15", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"PED","SEAT_down",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/sjedni6", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"PED","SEAT_idle",4.1,0,0,0,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/sjedni17", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"PED","SEAT_up",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/sjedni18", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"FOOD","FF_Sit_Loop",4.1,0,0,0,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/sjedni19", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   ApplyAnimation(playerid,"HAIRCUTS","BRB_Sit_Loop",4.1,0,1,1,1,1);
    return 1;
}
}
   if(strcmp(cmdtext, "/sjedni20", true) == 0) {
  if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
           ApplyAnimation(playerid,"MISC","SEAT_LR",4.1,0,0,0,1,1);
    return 1;
}
}


To sam imao i stavio u GM a sada cu vam dati komandu koja igracu pokazuje koje ima sve animacije(to sam sam napravio :) )

if(strcmp(cmdtext, "/anims", true)==0)
{
       SendClientMessage(playerid,COLOR_RED, "Sjesti anim: /sjedni sve do /sjedni14");
SendClientMessage(playerid,COLOR_RED, "Energija:/hurt i /cpr");
SendClientMessage(playerid,COLOR_RED, "Riot: /riot do /riot7");
SendClientMessage(playerid,COLOR_RED, "Gangster hod:/asign, /gsign, /bsign,/ssign,/visign,/lssign,/hsign,/t4lsign");
SendClientMessage(playerid,COLOR_RED, "Ruke: /hs do /hs6");
SendClientMessage(playerid,COLOR_RED, "Rap:/animrap do /animrap6");
SendClientMessage(playerid,COLOR_RED, "Ostalo:/plunger,/bitchslap,/gwalk,/gwalk1,/laugh,/smoking,/smokeweed,/wave,/lap,/drink,/handsup");
SendClientMessage(playerid,COLOR_RED, "Ostalo:/fatrun,/gangrun,/toughwalk,/aim,/sunbath,/rope,/celebrate,/gift,/die,/ghand");
return 1;
}

   return 0;
}
Poslednja Izmena: Januar 11, 2010, 14:53:43 POSLE PODNE od kizla

Zvuci mi dobro, isprobati cu.

e ovo mi se cini super

ali imam problem
neznam kud da ubacim
mozes mi tocno objasniti??

bilo tko ko zna kud da ubacim neka mi kaze molim ljepo!

iYoko

Pametno si to napravio da provjeri jer u vozilu... Inače ćeš vidit ljude kako voze motor bez ruku xD

Citatovo mi se cini super

ali imam problem
neznam kud da ubacim
mozes mi tocno objasniti??

bilo tko ko zna kud da ubacim neka mi kaze molim ljepo!

Vrlo jednostavno, otvori gamemod, pronadji "public OnPlayerCommandText(playerid, cmdtext[])"  unutar toga copy - paste kodove koje vidis

a kud da stavim ovo da igraci vide sve komande??

Isto pod Onplayercommandtext




odma ispod animacija da stavim ili ???

Bilo di samo daj je ispod onplayercommandtext