Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" [FS]Sistema de Vida e Colete - Kaiã Werb - ON");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" [FS]Sistema de Vida e Colete - Kaiã Werb - OFF");
- print("--------------------------------------\n");
- return 1;
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/vida", cmdtext, true, 10) == 0)
- {
- SetPlayerHealth(playerid, 100.0); // 100 de sangue
- GivePlayerMoney(playerid, -100); // preço da opção
- new pname[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "{FF0000}[INFO]{FFFFFF} %s Comprou vida e gastou R$100 reais ( /vida )", pname);
- SendClientMessageToAll( 0xFFFFFF , string);
- return 1;
- }
- if (strcmp("/colete", cmdtext, true, 10) == 0)
- {
- SetPlayerArmour(playerid, 100.0); // 100 de colete
- GivePlayerMoney(playerid, -100); // preço da opção
- new pname[MAX_PLAYER_NAME], string[256];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "{FF0000}[INFO]{FFFFFF} %s Comprou colete e gastou R$100 reais ( /colete )", pname);
- SendClientMessageToAll( 0xFFFFFF , string);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement