}
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;
}
._.