Author Topic: need cmd  (Read 2287 times)

0 Members and 1 Guest are viewing this topic.

Offline jimmy

  • Wiseguy
  • **
  • Posts: 94
    • View Profile
need cmd
« on: January 21, 2012, 08:14:24 pm »
hey guys i need the cmd to !heal a player like this !heal playername plzzz give me
Storm City Owner

Stormcity.smfnew.com

Offline DivX

  • Street Thug
  • *
  • Posts: 11
    • View Profile
Re: need cmd
« Reply #1 on: January 22, 2012, 12:39:09 am »
Code: [Select]
   }
    else if ( strcmp( cmd, "!HealT", true ) == 0 )
{
new snick[ 128 ], plr, health[ 128 ], szMsg[ 128 ];
snick = strtok( cmdtext, idx ), plr = FindPlayerIDFromString( snick ), health = strtok( cmdtext, idx );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !strlen( health ) ) SendClientMessage( playerid, COLOR_GREEN, "Type: /c HealT [Team]" );
  else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );
else
{
format( szMsg, sizeof( szMsg ), "%s has beed Healed to  %s ", gPlayers[ playerid ], gPlayers[ plr ] );
SendClientMessageToAll( COLOR_GREEN, szMsg );
SetPlayerHealth( plr, 100 );
}
return 1;

}



._.

Offline Black Eyed

  • Street Thug
  • *
  • Posts: 9
  • ..::Black_Eyed::..
    • View Profile
Re: need cmd
« Reply #2 on: January 22, 2012, 11:20:41 pm »
!HealT (TeamPlayer)

or

/c setHp (Nick/ID) (Hp)

??

Offline jimmy

  • Wiseguy
  • **
  • Posts: 94
    • View Profile
Re: need cmd
« Reply #3 on: January 22, 2012, 11:39:59 pm »
Divx cmd is not working
Storm City Owner

Stormcity.smfnew.com