Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: YoMan on March 06, 2012, 03:34:32 pm

Title: new cmd
Post by: YoMan on March 06, 2012, 03:34:32 pm
Hi all guys i made a !giveheal cmd u can take it

Code: [Select]
else if ( strcmp( cmd, "!giveheal", true ) == 0 )
{
new snick[ 128 ], plr, szMsg[ 128 ];
snick = strtok( cmdtext, idx ), plr = FindPlayerIDFromString( snick );
   if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );
else
{
format( szMsg, sizeof( szMsg ), "%s Give Health to %s", gPlayers[ playerid ], gPlayers[ plr ]);
SendClientMessageToAll( COLOR_GREEN, szMsg );
SetPlayerHealth( plr, 100.0 );
GameTextForPlayer( plr,"Thanks Him", gPlayers[ playerid ]);
}
return 1;
}

IF u like it then plzz dont forgot to register on www.bsgclan.smffy.com
Title: Re: new cmd
Post by: YoMan on March 07, 2012, 01:02:32 pm
thanks if u like my script then plzzz register on bsgclan.smffy.com
Title: Re: new cmd
Post by: Innocent Heart on March 07, 2012, 01:27:02 pm
Nice Cmd !
Title: Re: new cmd
Post by: YoMan on March 07, 2012, 02:09:42 pm
thnxs
Title: Re: new cmd
Post by: Innocent Heart on March 07, 2012, 02:17:32 pm
thnxs
Man Don't Say Thankx Again to me Because in Freinds i Don't That Someone is Saying me Thanks :)