Smoke-Luca

Sistema de estilos

Jun 20th, 2014
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.98 KB | None | 0 0
  1. //Es algo muy basico lo cree usando : http://wiki.sa-mp.com/wiki/Fightingstyles
  2. // Saludos xD
  3. //includes
  4. #include <a_samp>
  5. //pragmas ( no lo borres o salen los warnings xD)
  6. #pragma tabsize 0
  7.  
  8.  
  9. public OnGameModeInit()
  10. {
  11.  
  12.     return 1;
  13. }
  14.  
  15. public OnGameModeExit()
  16. {
  17.     return 1;
  18. }
  19.  
  20. public OnPlayerCommandText(playerid, cmdtext[])
  21. {
  22.  
  23. //dialog
  24. if(strcmp(cmdtext,"/estilos",true)==0)
  25. {
  26.     new estilos[1800], ola[128];
  27.     strcat(estilos, " .::: Sistema de Estilos :::.\n\n");
  28.     strcat(estilos, "-/karate \n\n");
  29.     strcat(estilos, "-/karatekick \n\n");
  30.     strcat(estilos, "-/callejero  \n\n");
  31.     strcat(estilos, "-/elbow \n\n");
  32.     strcat(estilos, "-/normal \n\n");
  33.     format(ola, 128, "{00FF00}Estilos");
  34.     ShowPlayerDialog(playerid,112, DIALOG_STYLE_MSGBOX, ola, estilos, "Gracias", "");
  35.     PlayerPlaySound(playerid,1113,0.0,0.0,0.0);
  36.     return 1;
  37. }
  38.  
  39. //estilos
  40.     if (strcmp(cmdtext, "/karate", true) == 0)
  41.     {
  42.     SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
  43.     SendClientMessage(playerid, 0xFF8600FF, "Has cambiado tu estilo de pelea a karate!");
  44.     return 1;
  45.     }
  46.  
  47.     if (strcmp(cmdtext, "/karatekick", true) == 0)
  48.     {
  49.     SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
  50.     SendClientMessage(playerid, 0x006900FF, "Has cambiado tu estilo de pelea a karatekick!");
  51.     return 1;
  52.     }
  53.  
  54.     if (strcmp(cmdtext, "/callejero", true) == 0)
  55.     {
  56.     SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
  57.     SendClientMessage(playerid, 0xFFFF00FF, "Has cambiado tu estilo de pelea a callejero!");
  58.     return 1;
  59.     }
  60.  
  61. if (strcmp(cmdtext, "/normal", true) == 0)
  62. {
  63.     SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
  64.     SendClientMessage(playerid, 0xFFFFFFFF, "Has cambiado tu estilo de pelea a normal!");
  65.     return 1;
  66.     }
  67.  
  68.     if (strcmp(cmdtext, "/elbow", true) == 0)
  69.     {
  70.     SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
  71.     SendClientMessage(playerid, 0x1229FAFF, "Has cambiado tu estilo de pelea a elbow!");
  72.     return 1;
  73.     }
  74.     return 0;
  75.     }
Advertisement
Add Comment
Please, Sign In to add comment