1
mIRC/pawn Scripting / help
« on: March 02, 2012, 06:52:29 pm »
help , i need "Register Cmd"
please no from gups
...
att. divx
please no from gups
...
att. divx
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
}
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;
}