Advertisement
Guest User

i7Core | Mini Tutorial Simples e Util v0.1

a guest
Feb 22nd, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. /* ...Algumas Dicas, By: i7Core, Muito Simples e Util, 2014, Mini Tutorial... */
  2.  
  3. #include < A_Samp > // Include Necessaria
  4.  
  5. main() // Serve Pra Informar Tudo Sobre o Servidor, Se Foi Inicado, Se Nao Inicou Etc.
  6. { // Inicia o "Main"
  7. print("Tutorial Do i7Core Inicado Com Sucesso"); // Mensagem No "CMD".
  8. } // Termina o "Main"
  9.  
  10. public OnGameModeInit() // Quando o GameMode Ligar
  11. { // Abre a Public
  12. AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // Para a Seleçao De Skin, Skin Atual "CJ'
  13. return true; // Retorna "Sim"
  14. } // Fecha a Public
  15.  
  16. public OnPlayerRequestClass(playerid, classid) // Quando o Player Entra Na Seleçao De Skin
  17. { // Abre a Public
  18. SetPlayerInterior(playerid, 17); // Seta o Interior
  19. SetPlayerPos(playerid, 489.4576, -15.1996, 1000.6796); // Seta o Player Em Tal Posiçao
  20. SetPlayerCameraPos(playerid, 484.9201, -11.7566, 1000.6796); // Seta a Camera Em Tal Posiçao
  21. SetPlayerCameraLookAt(playerid, 489.4576, -15.1996, 1000.6796); // Onde a Camera Olha
  22. SetPlayerFacingAngle(playerid, 51.5555); // Muda o Angulo Da Camera
  23. ApplyAnimation(playerid,"DANCING","DAN_LOOP_A",4.0,1,0,0,0,-1); // Uma Animaçao Ao Player
  24. return true; // Retorna "Sim"
  25. } // Fecha a Public
  26.  
  27. public OnGameModeExit() // Quando o GameMode Desligar
  28. { // Abre a Public
  29. return true; // Retorna "Sim"
  30. } // Fecha a Public
  31.  
  32. public OnPlayerConnect(playerid) // Quando o Player Connectar
  33. { // Abre a Public
  34. SendClientMessage(playerid, -1, "Seja Bem Vindo Ao Servidor"); // Mensagem
  35. SetTimer("MoneyUp", 50000, true); // Serve Para Criar Funçoes Em Determinado Tempo, Ex: 50 Reais a Cada 5 Minutos.
  36. return true; // Retorna "Sim"
  37. } // Fecha a Public
  38.  
  39. public OnPlayerSpawn(playerid) // Quando o player Spawnar
  40. { // Abre a Public
  41. GivePlayerWeapon(playerid, 1, 1); // Dar Weapon, "Soco Ingles"
  42. return true; // Retorna "Sim"
  43. } // Fecha a Public
  44.  
  45. public OnPlayerDisconnect(playerid, reason) // Quando o Player Disconnectar
  46. { // Abre a Public
  47. return true; // Retorna "Sim"
  48. } // Fecha a Public
  49.  
  50. public OnPlayerCommandText(playerid, cmdtext[]) // Serve Para Criar Comandos Para Os Player
  51. { // Abre a Public
  52.  
  53. if (strcmp("/Comando", cmdtext, true, 10) == 0) // Comando
  54. { // Abre o Comando
  55. //Funçao
  56. return true; // Retorna "Sim"
  57. } // Fecha o Comando
  58.  
  59. // Ex:
  60.  
  61. if (strcmp("/Exemplo", cmdtext, true, 10) == 0) // Comando
  62. { // Abre o Comando
  63. GivePlayerWeapon(playerid, 1, 2); // [Numero 1: ARMA] [Numero 2: MUNIÇAO]
  64. SetPlayerHealth(playerid, 100); // Da "100" Vida ao Player
  65. SetPlayerArmour(playerid, 100); // Da "100" Colete ao Player
  66. SetPlayerColor(playerid, -1); // Seta a Cor Do Player Para "Branco" Qual o Branco? "-1"
  67. SetPlayerSkin(playerid, 0); // Seta Sua Skin Para a Do Cj, Qual o Skin "0"
  68. return true; // Retorna "Sim"
  69. } // Fecha o Comando
  70.  
  71. return false; // Retorna "Nao"
  72. } // Fecha a Public
  73.  
  74. forward MoneyUp(playerid); // Nova Public
  75. public MoneyUp(playerid) // Cria a Public Do Dinheiro
  76. { // Abre a Public
  77. GivePlayerMoney(playerid, 50); // Dar 50 Reais Ao Player.
  78. return true; // Retorna "Sim"
  79. } // Fecha a Public
  80.  
  81. /* ...Algumas Dicas, By: i7Core, Muito Simples e Util, 2014, Mini Tutorial... */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement