Don't like ads? PRO users don't see any ads ;-)
Guest

Test filterscript

By: a guest on Jul 10th, 2012  |  syntax: None  |  size: 0.72 KB  |  hits: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // Test menu Animation
  2.  
  3. #include <a_samp>
  4.  
  5. new Menu:Anim;
  6.  
  7. public OnGameModeInit()
  8. {
  9.   Anim = CreateMenu("Animations", 2, 200.0, 100.0, 150.0, 150.0);
  10.   SetMenuColumnHeader(Anim , 0, "Choisissez une Animation:");
  11.   AddMenuItem(Anim , 0, "BourrĂ©");
  12.   return 1;
  13. }
  14.  
  15. public OnPlayerSelectedMenuRow(playerid, row)
  16. {
  17.   new Menu:CurrentMenu = GetPlayerMenu(playerid);
  18.   if(CurrentMenu == Anim)
  19.   {
  20.       switch(row)
  21.       {
  22.                 case 1:
  23.                 {
  24.         ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1,1);
  25.             }
  26.      }
  27.   }
  28. }
  29. public OnPlayerCommandText(playerid, cmdtext[])
  30. {
  31.  
  32.   if(strcmp(cmdtext, "/Animliste", true, 10) == 0)
  33.   {
  34.     ShowMenuForPlayer(Anim,playerid);
  35.     return 1;
  36.   }
  37.   return 0;
  38. }