Advertisement
Guest User

[FS]Sistema de Vida e colete

a guest
Aug 7th, 2013
793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.42 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #if defined FILTERSCRIPT
  4.  
  5.  
  6. public OnFilterScriptInit()
  7. {
  8.     print("\n--------------------------------------");
  9.     print(" [FS]Sistema de Vida e Colete - Kaiã Werb - ON");
  10.     print("--------------------------------------\n");
  11.     return 1;
  12. }
  13.  
  14. public OnFilterScriptExit()
  15. {
  16.     print("\n--------------------------------------");
  17.     print(" [FS]Sistema de Vida e Colete - Kaiã Werb - OFF");
  18.     print("--------------------------------------\n");
  19.     return 1;
  20. }
  21. #endif
  22.  
  23.  
  24. public OnPlayerCommandText(playerid, cmdtext[])
  25. {
  26.     if (strcmp("/vida", cmdtext, true, 10) == 0)
  27.     {
  28.         SetPlayerHealth(playerid, 100.0); // 100 de sangue
  29.         GivePlayerMoney(playerid, -100); // preço da opção
  30.         new pname[MAX_PLAYER_NAME], string[256];
  31.         GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  32.         format(string, sizeof(string), "{FF0000}[INFO]{FFFFFF} %s Comprou vida e gastou R$100 reais ( /vida )", pname);
  33.         SendClientMessageToAll( 0xFFFFFF , string);
  34.         return 1;
  35.     }
  36.    
  37.     if (strcmp("/colete", cmdtext, true, 10) == 0)
  38.     {
  39.         SetPlayerArmour(playerid, 100.0); // 100 de colete
  40.         GivePlayerMoney(playerid, -100); // preço da opção
  41.         new pname[MAX_PLAYER_NAME], string[256];
  42.         GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  43.         format(string, sizeof(string), "{FF0000}[INFO]{FFFFFF} %s Comprou colete e gastou R$100 reais ( /colete )", pname);
  44.         SendClientMessageToAll( 0xFFFFFF , string);
  45.         return 1;
  46.     }
  47.    
  48.     return 0;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement