Author Topic: how to make heal for money?  (Read 2734 times)

0 Members and 1 Guest are viewing this topic.

Offline abdulfussy

  • Street Thug
  • *
  • Posts: 13
  • Trust No One
    • View Profile
how to make heal for money?
« on: January 26, 2013, 05:25:34 pm »
how to make heal for money i wnat to heal like 300$ can u tell me how to chnage this cmd[pawn]   else if ( strcmp( cmd, "!heal", true ) == 0 )
   {
      tmp = strtok( cmdtext, idx );
      if ( !strlen( tmp ) )
      {
         SetPlayerHealth(playerid, 100);
         SendClientMessage(playerid, BLUE,"You Are Healthy Now.");
      }
      else
      {
         new plr = FindPlayerIDFromString( tmp );
          if ( plr != INACTIVE_PLAYER_ID )
         {
            SendClientMessage(playerid, COLOR_GREEN,"%s Is Healthy Now.",gPlayers[ plr ]);
            SendClientMessage(plr, COLOR_YELLOW,"You Are Healthy Now, Thanks To %s", gPlayers[ playerid ]);
            SetPlayerHealth(plr, 100);
         }
         else { SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" ); }
      }
      return 1;
      }[/pawn]


Offline DilsonTB

  • Made Man
  • ***
  • Posts: 140
  • VC:MP Developer. & SA:MP Currently Developer
    • View Profile
Re: how to make heal for money?
« Reply #1 on: January 26, 2013, 09:12:21 pm »
how to make heal for money i wnat to heal like 300$ can u tell me how to chnage this cmd[pawn]   else if ( strcmp( cmd, "!heal", true ) == 0 )
   {
      tmp = strtok( cmdtext, idx );
      if ( !strlen( tmp ) )
      {
         SetPlayerHealth(playerid, 100);
// Here you can make/use a function to decrease money to the player
         SendClientMessage(playerid, BLUE,"You Are Healthy Now.");
      }
      else
      {
         new plr = FindPlayerIDFromString( tmp );
          if ( plr != INACTIVE_PLAYER_ID )
         {
            SendClientMessage(playerid, COLOR_GREEN,"%s Is Healthy Now.",gPlayers[ plr ]);
            SendClientMessage(plr, COLOR_YELLOW,"You Are Healthy Now, Thanks To %s", gPlayers[ playerid ]);
            SetPlayerHealth(plr, 100);
// Here you can make/use a function to decrease money to the player
         }
         else { SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" ); }
      }
      return 1;
      }[/pawn]

Catched it? :D
_______________________________________________
¬ VC:MP Squirrel Developer.
¬ VC:MP pawno Developer.
¬ SA:MP Developer.
¬
¬ Actually developing " San Fierro Roleplay - Latino ", with
my beta team testers, Mapper + Scripter ( me ), 18,000
lines, and is 34% finished. hope to finish it in 4 Or 3 Months.

- MYSQL FULL BASED.
- PCU.
_______________________________________________

Offline abdulfussy

  • Street Thug
  • *
  • Posts: 13
  • Trust No One
    • View Profile
Re: how to make heal for money?
« Reply #2 on: January 26, 2013, 09:18:15 pm »
thx


Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: how to make heal for money?
« Reply #3 on: February 06, 2013, 03:31:49 pm »
« Last Edit: February 07, 2013, 03:22:28 am by stormeus »
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol