Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Es algo muy basico lo cree usando : http://wiki.sa-mp.com/wiki/Fightingstyles
- // Saludos xD
- //includes
- #include <a_samp>
- //pragmas ( no lo borres o salen los warnings xD)
- #pragma tabsize 0
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- //dialog
- if(strcmp(cmdtext,"/estilos",true)==0)
- {
- new estilos[1800], ola[128];
- strcat(estilos, " .::: Sistema de Estilos :::.\n\n");
- strcat(estilos, "-/karate \n\n");
- strcat(estilos, "-/karatekick \n\n");
- strcat(estilos, "-/callejero \n\n");
- strcat(estilos, "-/elbow \n\n");
- strcat(estilos, "-/normal \n\n");
- format(ola, 128, "{00FF00}Estilos");
- ShowPlayerDialog(playerid,112, DIALOG_STYLE_MSGBOX, ola, estilos, "Gracias", "");
- PlayerPlaySound(playerid,1113,0.0,0.0,0.0);
- return 1;
- }
- //estilos
- if (strcmp(cmdtext, "/karate", true) == 0)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
- SendClientMessage(playerid, 0xFF8600FF, "Has cambiado tu estilo de pelea a karate!");
- return 1;
- }
- if (strcmp(cmdtext, "/karatekick", true) == 0)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
- SendClientMessage(playerid, 0x006900FF, "Has cambiado tu estilo de pelea a karatekick!");
- return 1;
- }
- if (strcmp(cmdtext, "/callejero", true) == 0)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
- SendClientMessage(playerid, 0xFFFF00FF, "Has cambiado tu estilo de pelea a callejero!");
- return 1;
- }
- if (strcmp(cmdtext, "/normal", true) == 0)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
- SendClientMessage(playerid, 0xFFFFFFFF, "Has cambiado tu estilo de pelea a normal!");
- return 1;
- }
- if (strcmp(cmdtext, "/elbow", true) == 0)
- {
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
- SendClientMessage(playerid, 0x1229FAFF, "Has cambiado tu estilo de pelea a elbow!");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment