0 Members and 1 Guest are viewing this topic.
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; }
thnxs